mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-19 15:32:31 +00:00
Previously we were counting the total number of *nodes* in the tree for the chain cost, which greatly underestimated its cost when large bytecode entries were present, This commit switches to estimating it using the total bytecode *size*, which is a closer value to the true cost than the tree node count. This corresponds to a ~4x perf improvement on /<script|<style|<link/ in speedometer. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Forward.h | ||
Regex.h | ||
RegexByteCode.cpp | ||
RegexByteCode.h | ||
RegexBytecodeStreamOptimizer.h | ||
RegexDebug.h | ||
RegexDefs.h | ||
RegexError.h | ||
RegexLexer.cpp | ||
RegexLexer.h | ||
RegexMatch.h | ||
RegexMatcher.cpp | ||
RegexMatcher.h | ||
RegexOptimizer.cpp | ||
RegexOptions.h | ||
RegexParser.cpp | ||
RegexParser.h |