r/programming • • Oct 16 '26

Learned Index Lab: Replacing B-Trees with streaming linear models in pure Rust (-99% RAM, 3x faster)

https://github.com/gilnett/learned_index_lab

Instead of pointer-chasing through B-Tree node hierarchies, this index models the key distribution using streaming piecewise linear regression with strict epsilon error bounds.

Lookups compute positions directly on the CPU ALU before a local L1 cache search, reducing memory by 99% and cutting latency by 3x.

191 Upvotes

49 comments sorted by

View all comments

Show parent comment

2

u/gilnett Oct 16 '26

If you meant the original academic paper: https://arxiv.org/abs/1911.05496

2

u/AlphaModder Oct 17 '26

That's the same link in the README, and it goes to a paper called "Temporal Graph Kernels for Classifying Dissemination Processes", not "The PGM-index: a data-structure with a guarantee on space and time efficiency". Which is also not quite the title of the actual paper, which can be found here. Please don't trust AI-generated citations.

2

u/gilnett Oct 17 '26

No AI hallucination here, just an honest human copy-paste blunder from my reading notes. I had a backlog of papers open from researching graph-based and dissemination index models and ended up pasting the wrong arXiv link on that line in the README.

Thanks for catching the mismatch and dropping the direct VLDB link. I've updated the README with the proper VLDB paper PDF (https://www.vldb.org/pvldb/vol13/p1162-ferragina.pdf), the original arXiv preprint (https://arxiv.org/abs/1910.06169), and the official PGM site