You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
filter[51] #You can use __getitem__ instead of contains
30
+
filter["か"] # returns false
38
31
```
39
32
40
33
41
34
The `size_in_bytes()` function gives the memory usage of the filter itself. It does not count
42
-
the Python overhead which adds a few bytes to the actual memory usage.
35
+
the Python overhead which adds a few bytes to the actual memory usage:
36
+
37
+
```py
38
+
filter.size_in_bytes()
39
+
```
43
40
44
41
You can serialize a filter with the `serialize()` method which returns a buffer, and you can recover the filter with the `deserialize(buffer)` method, which returns a filter:
0 commit comments