RealTimeChris / Json-Performance

A few C++ json-library benchmarks, of the fastest few libraries.
MIT License
20 stars 2 forks source link

Glaze .minified (faster read performance) #4

Closed stephenberry closed 7 months ago

stephenberry commented 7 months ago

Like Jsonifier, Glaze now has a compile time option for when the read input is known to be minified, improving performance. Just add .minified = true to the read options.

Example: glz::read<glz::opts{.minified = true}>(obj, buffer);

Thanks for the motivation to add this feature.

RealTimeChris commented 7 months ago

Alright I've updated the code/benchmarks to reflect this. Thanks!