Closed stephenberry closed 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.
.minified = true
Example: glz::read<glz::opts{.minified = true}>(obj, buffer);
glz::read<glz::opts{.minified = true}>(obj, buffer);
Thanks for the motivation to add this feature.
Alright I've updated the code/benchmarks to reflect this. Thanks!
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.