`std::string` allocations are my current bottleneck - how can I optimize with a custom allocator?

后端 未结 6 1905
半阙折子戏
半阙折子戏 2021-02-04 06:44

I\'m writing a C++14 JSON library as an exercise and to use it in my personal projects.

By using callgrind I\'ve discovered that the current bottleneck

6条回答
  •  -上瘾入骨i
    2021-02-04 06:54

    I think you'd be best served by reading up on the EASTL

    It has a section on allocators and you might find fixed_string useful.

提交回复
热议问题