dragonfly
dragonfly copied to clipboard
Search: Reduce memory overhead by 25% by replacing of std::pmr::string
Create lightweight immutable string type that can only be deleted externally, hence it doesn't have to store it's allocator pointer
PS: 25 when all strings are inlined, obviously it's less for large datasets
Hi, this enhancement sounds promising. I can help if you need.
Could you share more about the design?
I didn't find std::pmr::string
in ./src. Which files would be impacted?
Hi! It's used in src/core/search/sort_index
Please note that task is not that simple because it requires some trickery to make it more or less safe and container compatible 🙂 If you want to take it up, please make sure to first dive into the context on how it's used