stephenberry / glaze

Extremely fast, in memory, JSON and interface library for modern C++
MIT License
1.23k stars 123 forks source link

Remove large element optimization #1406

Closed stephenberry closed 3 weeks ago

stephenberry commented 4 weeks ago

This optimization was not well tested, is not generally useful (often indicates bad programming practices if necessary), and complicated the codebase.

The better solution is for users to reserve memory or to use std::unique_ptr/std::shared_ptr to avoid copying on resizing.