Skip to content

loading rules in 2 parts to reduce the final memory used

Jonathan Poelen requested to merge jpoelen/syntax-highlighting:newparser into master

The first part reads the xml values then resolves contexts. The second part create a rule with the contexts. This allows to remove the intermediate QString in Rule, which has the consequence of reducing the memory used.

./bin/highlighter_benchmark:

Before 27.056s - 76724K
After 26.714s - 72672K

Merge request reports