Skip to content
Commit bb4b9606 authored by Jonathan Poelen's avatar Jonathan Poelen Committed by Christoph Cullmann
Browse files

use the skipOffsets cache only when a rule can be found in it (highlighter_benchmark 7% faster)

For the moment, a pointer is added in Rule and points either to nullptr or to this. I'm thinking of turning this into a simple integer and sharing all the same regex patterns and keyword lists under the same id which would allow to skip rules without having used doMatch() on them once.
parent 365de0b5
Pipeline #309021 passed with stage
in 7 minutes and 7 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment