Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 28fd45e

Browse files
committed
Fixed incorrect usage of memoryview. It's not getting faster though
[ skip ci ]
1 parent f53ddc6 commit 28fd45e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

smmap/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
except NameError:
2424
# Python 3 has no `buffer`; only `memoryview`
2525
def buffer(obj, offset, size):
26-
# return memoryview(obj[offset:offset+size])
26+
# return memoryview(obj)[offset:offset+size]
2727
# doing it directly is much faster !
2828
return obj[offset:offset+size]
2929

0 commit comments

Comments
 (0)