Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc1998a0

Browse files
committed
Fixed python 3 performance regression
It makes the difference between tests in 110s, or 11s
1 parent84929ed commitc1998a0

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

‎doc/source/changes.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
Changelog
33
#########
44

5+
**********
6+
v0.8.4
7+
**********
8+
- Fixed Python 3 performance regression
9+
510
**********
611
v0.8.3
712
**********

‎smmap/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
__author__="Sebastian Thiel"
44
__contact__="byronimo@gmail.com"
55
__homepage__="https://github.com/Byron/smmap"
6-
version_info= (0,8,3)
6+
version_info= (0,8,4)
77
__version__='.'.join(str(i)foriinversion_info)
88

99
# make everything available in root package for convenience

‎smmap/util.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@
2323
exceptNameError:
2424
# Python 3 has no `buffer`; only `memoryview`
2525
defbuffer(obj,offset,size):
26-
# return memoryview(obj)[offset:offset+size]
26+
# Actually, for gitpython this is fastest ... .
27+
returnmemoryview(obj)[offset:offset+size]
2728
# doing it directly is much faster !
28-
returnobj[offset:offset+size]
29+
#return obj[offset:offset + size]
2930

3031

3132
defstring_types():

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp