Full article (accessible by Substack paid users) https://hftuniversity.com/post/a-hash-table-smaller-than-its-data-is-real-the-version-you-can-copy-is-not Get full access to Low Latency Trading Insights at lucisqr.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00So a paper lands on archive, four days old, Cornell and Carnegie Mellon, and it makes a claim that sounds like a typo. A hash table that takes up less space than the data it stores. Not compact, not cache friendly, smaller than the data. 105.4% space efficiency, constant time operations, and the authors are serious people. One of them literally invented the theory that this is built on.
SPEAKER_00So they even ship a version for practitioners to see files, no dependencies, copy and go. So what we did, we did what we always do here. We put it on the bench, we form machines, Against the tables you actually have in production, not toy examples. We have compare against abseil anchor. Those are the baselines that the paper never ran against.
SPEAKER_00Those are the real contenders. And the results split right down the middle. The copy and paste version loses every speed row by 4 to 6x. And that is the embarrassing part. STD on the map, the container we've spent years telling you to replace, beats it to. But embodied in the research code, the part that needs AVX512 and won't even compile on three of our four machines,
SPEAKER_00the impossible claim is real. 16-byte pairs stored in 16.03 measured bytes per pair. A full-service hash table sitting at the information theoretic edge of the data itself. Nobody else has that. So tonight the question is, when a peer-reviewed paper is completely honest and still wrong for you, where exactly does the truth leak out? The answer, as usual, is in the baselines.
Link: https://www.amazon.com/Low-Latency-Trading-Insights-Measured/dp/B0HM1PQP2V “Pass small structs by value.” “A computed goto beats a switch.” “Turn the prefetchers off.” Thirteen rules every low-latency engineer...
Full article: https://hftuniversity.com/post/seven-pieces-to-read-before-the-concurrency-interview Get full access to Low Latency Trading Insights at lucisqr.substack.com/subscribe