Skip to content

Commit c676938

Browse files
committed
optimizing the hash
1 parent d96489d commit c676938

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

pyfusefilter/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
from pyfusefilter.pyfusefilter import Xor8, Xor16, Fuse8, Fuse16
22

3-
VERSION = "1.2.0"
3+
VERSION = "1.2.1"
44
__all__ = ["Xor8", "Xor16", "Fuse8", "Fuse16"]

pyfusefilter/pyfusefilter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import struct
55

66
def hash(item):
7-
return xxhash.xxh64(str(item)).intdigest()
7+
return xxhash.xxh64_intdigest(str(item))
88

99
class Xor8:
1010
"""

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ py-modules = []
33
# cffi-modules handled in setup.py
44
[project]
55
name = "pyfusefilter"
6-
version = "1.2.0"
6+
version = "1.2.1"
77
description = "Python bindings for C implementation of xor and fuse filters"
88
authors = [
99
{name = "Amey Narkhede", email = "[email protected]"},
@@ -43,7 +43,7 @@ before-all = "apk add libffi-dev"
4343
# pdoc configuration
4444
name = "pyfusefilter"
4545
description = "Python bindings for C implementation of xor and fuse filters"
46-
version = "1.2.0"
46+
version = "1.2.1"
4747
author = "Amey Narkhede & Daniel Lemire"
4848
author_email = "[email protected]"
4949
url = "https://github.com/FastFilter/pyfusefilter"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
setup(
55
name="pyfusefilter",
6-
version="1.2.0",
6+
version="1.2.1",
77
description="Python bindings for C implementation of xorfilter",
88
long_description=open("README.md", "r", encoding='utf-8').read(),
99
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)