mirror of
https://github.com/simdjson/simdjson
synced 2026-06-08 17:27:07 +00:00
764a6a0bb6
The ablation study was showing inconsistent results for the consteval optimization (-9% CITM, -1% Twitter) because the ABLATION_NO_CONSTEVAL guards were missing from two critical code paths: 1. atom() for structs (line 94-102): The consteval optimization for pre-computing escaped/quoted field names was not being disabled. 2. atom() for enums (line 136-150): The consteval optimization for pre-computing escaped/quoted enum string values was not being disabled. With these guards added, the ablation study now correctly shows the full impact of the consteval optimization: - CITM: -47% (was -9%) - Twitter: -38% (was -1%) This confirms the consteval optimization provides ~2x performance improvement by pre-computing escaped/quoted strings at compile time via std::define_static_string and consteval_to_quoted_escaped.