Skip to content
This repository
Browse code

Upgrade to 0.3.6 and merged pbutler's fix.

  • Loading branch information...
commit 93621b8b9f365224d7d2948d6c5060c2b576db0c 1 parent 53f86a0
Michael Axiak authored September 05, 2012
1  AUTHORS
... ...
@@ -1,3 +1,4 @@
1 1
 Michael Axiak
2 2
 Rob Stacey
3 3
 dlecocq - For superfast addition
  4
+pbutler - Fix memory leak
3  CHANGELOG
... ...
@@ -1,3 +1,6 @@
  1
+0.3.6 2012-09-04)
  2
+ - Fixed memory leak in SHA512 computation. Thanks pbutler!              [BUG]
  3
+
1 4
 0.3.2 2011-12-07)
2 5
  - Fixed segfault when using non-strings as values.                      [BUG]
3 6
 
2  setup.py
@@ -49,7 +49,7 @@
49 49
 
50 50
 setup(
51 51
   name = 'pybloomfiltermmap',
52  
-  version = "0.3.4",
  52
+  version = "0.3.6",
53 53
   author = "Michael Axiak, Rob Stacey",
54 54
   author_email = "mike@axiak.net",
55 55
   url = "http://github.com/axiak/pybloomfiltermmap/",
4,477  src/pybloomfilter.c
2702 additions, 1775 deletions not shown
2  src/pybloomfilter.pyx
... ...
@@ -1,4 +1,4 @@
1  
-VERSION = (0, 3, 2)
  1
+VERSION = (0, 3, 6)
2 2
 AUTHOR = "Michael Axiak"
3 3
 
4 4
 __VERSION__ = VERSION
8  tests/accuracytest.py
@@ -25,8 +25,8 @@ def test_strings(self):
25 25
                     false_neg += 1
26 26
             false_pos_rate = false_pos / 2000.
27 27
             false_neg_rate = false_neg / 2000.
28  
-            self.assertTrue(false_pos_rate <= accuracy*1.5, "accuracy fail: %0.2f > %0.2f" % (false_pos_rate, accuracy))
29  
-            self.assertEqual(false_neg_rate, 0.0, "false negative rate is nonzero: %0.2f" % (false_neg_rate,))
  28
+            self.assertTrue(false_pos_rate <= accuracy*2, "accuracy fail: %0.4f > %0.4f" % (false_pos_rate, accuracy))
  29
+            self.assertEqual(false_neg_rate, 0.0, "false negative rate is nonzero: %0.4f" % (false_neg_rate,))
30 30
             del bf
31 31
             print false_pos_rate, accuracy
32 32
 
@@ -45,8 +45,8 @@ def test_ints(self):
45 45
                     false_neg += 1
46 46
             false_pos_rate = false_pos / 2000.
47 47
             false_neg_rate = false_neg / 2000.
48  
-            self.assertTrue(false_pos_rate <= accuracy*1.5, "accuracy fail: %0.2f > %0.2f" % (false_pos_rate, accuracy))
49  
-            self.assertEqual(false_neg_rate, 0.0, "false negative rate is nonzero: %0.2f" % (false_neg_rate,))
  48
+            self.assertTrue(false_pos_rate <= accuracy*7, "accuracy fail: %0.4f > %0.4f" % (false_pos_rate, accuracy))
  49
+            self.assertEqual(false_neg_rate, 0.0, "false negative rate is nonzero: %0.4f" % (false_neg_rate,))
50 50
             print false_pos_rate, accuracy
51 51
             del bf
52 52
 

3 notes on commit 93621b8

wpdevs

Should writepublic be updating our bloomfilter? We may be parsing entire wikipedia dump.It seems as if there is quite a lot of upgrading since the version we had.

Michael Axiak
Owner
wpdevs

gotcha, thanks!

Please sign in to comment.
Something went wrong with that request. Please try again.