Re:God: Scalable in Memory Data Structure Server in Go
by wisty on Tuesday February 05, 2013 @09:47PM
(#5174642)
Python's hash, for example, will generate lower collisions than a "good" hash function. 'file1', 'file2', and 'file3' will not collide, but end up in sequential boxes, which is very efficient. Of course, you can send python web apps a "cookie of death", in which all cookies collide. There's a patch, but I think it's disabled by default.
[ Parent
| on HN ]
Re:God: Scalable in Memory Data Structure Server in Go
by kibwen on Tuesday February 05, 2013 @10:28PM
(#5174745)
Hash randomization was actually enabled by default in Python 3.3.
http://docs.python.org/3/whatsnew/3.3.html#summary-release-h...
Re:God: Scalable in Memory Data Structure Server in Go
by slurgfest on Tuesday February 05, 2013 @11:03PM
(#5174810)
Which means this is not available in PyPy? :(
Re:God: Scalable in Memory Data Structure Server in Go
by wisty on Tuesday February 05, 2013 @11:21PM
(#5174856)
python -R should enable it in 2.X (in the patched version, 2.7.3 is fine). PyPy does not include hash randomization (see http://doc.pypy.org/en/latest/cpython_differences.html).