loading rules in 2 parts to reduce the final memory used
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 |