High-performance header-only container library for C++23 on x86-64
78 points| mattgodbolt | 1 month ago |github.com
The B+tree implementation provides significant performance improvements over industry standards for large trees. For some workloads with large trees, we've observed:
- vs Abseil B+tree: 2-5× faster across insert/find/erase operations - vs std::map: 2-5× faster across insert/find/erase operations
plorkyeran|1 month ago
sedatk|1 month ago
unknown|1 month ago
[deleted]
the_arun|1 month ago
barishnamazov|1 month ago
ognarb|1 month ago
It seems the code was written with AI, I hope the author knows what he is doing. Last time I tried to use AI to optimize CPU-heavy C++ code (StackBlur) with SIMD, this failed :/
klaussilveira|1 month ago
Have you tried to do any OpenGL or Vulkan work with it? Very frustrating.
React and HTML, though, pretty awesome.
leopoldj|1 month ago
LoganDark|1 month ago
https://github.com/logandark/stackblur-iter
shihab|1 month ago
AI is always good at going from 0 to 80%, it's the last 20% it struggles with. It'd be interesting to see a claude-written code making its way to a well-established library.
dicroce|1 month ago
wffurr|1 month ago
You use either container when you want a sorted associative map type, which I have not found many uses cases for in my work. I might have a handful of them versus many instances of vectors and unsorted associative maps, i.e. absl::flat_hash_map.
dataflow|1 month ago
unknown|1 month ago
[deleted]
unit149|1 month ago
[deleted]