|
|
|
|
|
by lukehutch
2045 days ago
|
|
This is a straw man argument. Python's associative array code is written in C, not in Python, and Redis is written in C. So you're comparing C to C. The 40% loss in performance is due to Python being much slower at doing the stuff that's actually written in Python. |
|
[1]: https://github.com/python/cpython/blob/master/Objects/dictob...
[2]: https://github.com/redis/redis/blob/unstable/src/dict.c