3 ms·
> Also, I've never really dug into what's going on, but the dbm implementation is pretty slow on Windows, at least when I've tried to use it. Seems like this w
by OGWhales 4y ago
> Also, I've never really dug into what's going on, but the dbm implementation is pretty slow on Windows, at least when I've tried to use it.
Seems like this would be why: https://news.ycombinator.com/item?id=32852333 https://news.ycombinator.com/item?id=32852333
- banana_giraffe 4y ago"the slow-but-simple implementation in module dbm.dumb will be used" No kidding. https://github.com/python/cpython/blob/main/Lib/dbm/dumb.py https://github.com/python/cpython/blob/main/Lib/dbm/dumb.py It uses a text file to store keys and pointers into a binary file for values. It works .. most of the time .. but yeah, that's not going to win any speed awards.