pyfusefilter 1.3.0__tar.gz → 1.3.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/PKG-INFO +1 -1
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/lib/xor_singleheader/include/binaryfusefilter.h +1 -1
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/pyfusefilter/pyfusefilter.py +3 -1
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/pyfusefilter.egg-info/PKG-INFO +1 -1
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/pyproject.toml +3 -19
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/setup.py +1 -1
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/LICENSE +0 -0
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/MANIFEST.in +0 -0
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/README.md +0 -0
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/lib/xor_singleheader/include/xorfilter.h +0 -0
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/pyfusefilter/__init__.py +0 -0
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/pyfusefilter/ffibuild.py +0 -0
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/pyfusefilter.egg-info/SOURCES.txt +0 -0
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/pyfusefilter.egg-info/dependency_links.txt +0 -0
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/pyfusefilter.egg-info/requires.txt +0 -0
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/pyfusefilter.egg-info/top_level.txt +0 -0
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/setup.cfg +0 -0
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/tests/__init__.py +0 -0
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/tests/test_fuse16.py +0 -0
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/tests/test_fuse8.py +0 -0
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/tests/test_xor16.py +0 -0
- {pyfusefilter-1.3.0 → pyfusefilter-1.3.2}/tests/test_xor8.py +0 -0
|
@@ -332,7 +332,7 @@ static inline bool binary_fuse8_populate(uint64_t *keys, uint32_t size,
|
|
|
332
332
|
for (uint32_t i = 0; i < block; i++) {
|
|
333
333
|
// important : i * size would overflow as a 32-bit number in some
|
|
334
334
|
// cases.
|
|
335
|
-
startPos[i] = (uint32_t)((uint64_t)i * size) >> blockBits;
|
|
335
|
+
startPos[i] = (uint32_t)(((uint64_t)i * size) >> blockBits);
|
|
336
336
|
}
|
|
337
337
|
|
|
338
338
|
uint64_t maskblock = block - 1;
|
|
@@ -4,7 +4,9 @@ import xxhash
|
|
|
4
4
|
import struct
|
|
5
5
|
|
|
6
6
|
def hash(item):
|
|
7
|
-
|
|
7
|
+
# xxhash 4 no longer accepts str; encoding as UTF-8 gives exactly the
|
|
8
|
+
# same hash values that earlier xxhash versions computed for str input.
|
|
9
|
+
return xxhash.xxh64_intdigest(str(item).encode("utf-8"))
|
|
8
10
|
|
|
9
11
|
class Xor8:
|
|
10
12
|
"""
|
|
@@ -3,7 +3,7 @@ py-modules = []
|
|
|
3
3
|
# cffi-modules handled in setup.py
|
|
4
4
|
[project]
|
|
5
5
|
name = "pyfusefilter"
|
|
6
|
-
version = "1.3.
|
|
6
|
+
version = "1.3.2"
|
|
7
7
|
description = "Python bindings for C implementation of xor and fuse filters"
|
|
8
8
|
authors = [
|
|
9
9
|
{name = "Amey Narkhede", email = "ameynarkhede02@gmail.com"},
|
|
@@ -21,29 +21,13 @@ Homepage = "https://github.com/FastFilter/pyfusefilter"
|
|
|
21
21
|
requires = ["setuptools", "wheel", "cffi"]
|
|
22
22
|
build-backend = "setuptools.build_meta"
|
|
23
23
|
|
|
24
|
-
|
|
25
|
-
environment = { PIP_GLOBAL_OPTION="build_ext", PIP_NO_BUILD_ISOLATION="1" , CIBUILDWHEEL="1" }
|
|
26
|
-
build-frontend = "pip"
|
|
27
|
-
|
|
28
|
-
[tool.cibuildwheel.linux]
|
|
29
|
-
before-all = "yum install -y libffi-devel"
|
|
30
|
-
|
|
31
|
-
[tool.cibuildwheel.macos]
|
|
32
|
-
before-all = "brew install libffi"
|
|
33
|
-
|
|
34
|
-
[[tool.cibuildwheel.overrides]]
|
|
35
|
-
select = "*-manylinux2_*"
|
|
36
|
-
before-all = "apt-get -y install libffi-dev"
|
|
37
|
-
|
|
38
|
-
[[tool.cibuildwheel.overrides]]
|
|
39
|
-
select = "*-musllinux*"
|
|
40
|
-
before-all = "apk add libffi-dev"
|
|
24
|
+
# cibuildwheel settings live in pyproject-cibuildwheel.toml (see wheels.yml).
|
|
41
25
|
|
|
42
26
|
[tool.pdoc]
|
|
43
27
|
# pdoc configuration
|
|
44
28
|
name = "pyfusefilter"
|
|
45
29
|
description = "Python bindings for C implementation of xor and fuse filters"
|
|
46
|
-
version = "1.3.
|
|
30
|
+
version = "1.3.2"
|
|
47
31
|
author = "Amey Narkhede & Daniel Lemire"
|
|
48
32
|
author_email = "daniel@lemire.me"
|
|
49
33
|
url = "https://github.com/FastFilter/pyfusefilter"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|