Show HN: On-disk B+ tree for Python 3
github.com
Show HN: On-disk B+ tree for Python 3
1–10 of 22 posts
Re: Show HN: On-disk B+ tree for Python 3
#2Cannot delete items yet
Re: Show HN: On-disk B+ tree for Python 3
#3Cannot delete items yet
Yes, it's a work in progress, see the `remove` branch.
Re: Show HN: On-disk B+ tree for Python 3
#4Nice, I'm a big user of various data stores for scientific work. How does this compare to LMDB (http://www.lmdb.tech/doc/), which uses B-trees (and has a Python interface)?
Re: Show HN: On-disk B+ tree for Python 3
#5What's wrong with LMDB?
Re: Show HN: On-disk B+ tree for Python 3
#6Re: Show HN: On-disk B+ tree for Python 3
#7Re: Show HN: On-disk B+ tree for Python 3
#8Nice, I'm a big user of various data stores for scientific work. How does this compare to LMDB ( http://www.lmdb.tech/doc/ ), which uses B-trees (and has a Python interface)?
I haven't done any benchmark yet but I expect my implementation to be at least an order of magnitude slower.
I've found my implementation to be CPU intensive: creating Python objects from the raw pages is expensive. That's why bulk inserts and iterations are much faster than insert/get in a loop.
Re: Show HN: On-disk B+ tree for Python 3
#9Re: Show HN: On-disk B+ tree for Python 3
#10ZODB has a mature B+Tree implementation for on disk use in the BTrees package. https://pypi.python.org/pypi/BTrees