Optimize parser by csmarchbanks · Pull Request #1117 · prometheus/client_python
changed the base branch from
master
to
parser-benchmark
Enumerating rather than using a while loop saves significant CPU when looking for an unquoted character. This ends up improving the benchmark ~20% on its own. Signed-off-by: Chris Marchbanks <csmarchbanks@gmail.com>
ywwg approved these changes Jul 8, 2025
Base automatically changed from parser-benchmark to master
July 8, 2025 15:56This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters