|
@@ -18,10 +18,6 @@ import os
|
|
import math
|
|
import math
|
|
import array
|
|
import array
|
|
import random
|
|
import random
|
|
-#mport bufsock
|
|
|
|
-#mport hashlib
|
|
|
|
-#mport numbers
|
|
|
|
-import python2x3
|
|
|
|
|
|
|
|
try:
|
|
try:
|
|
import mmap as mmap_mod
|
|
import mmap as mmap_mod
|
|
@@ -31,6 +27,12 @@ except ImportError:
|
|
else:
|
|
else:
|
|
HAVE_MMAP = True
|
|
HAVE_MMAP = True
|
|
|
|
|
|
|
|
+#mport bufsock
|
|
|
|
+#mport hashlib
|
|
|
|
+#mport numbers
|
|
|
|
+
|
|
|
|
+import python2x3
|
|
|
|
+
|
|
# In the literature:
|
|
# In the literature:
|
|
# k is the number of probes - we call this num_probes_k
|
|
# k is the number of probes - we call this num_probes_k
|
|
# m is the number of bits in the filter - we call this num_bits_m
|
|
# m is the number of bits in the filter - we call this num_bits_m
|