Implement slurp mode in INI parser
Background
The patterns.ini
is currently stored as an array in browser.storage.local
. Even though the contents are serialized line by line, they could be stored as a single string. It might be faster to parse the entire string in one go using multiline regular expressions.
Here are some unanswered questions:
- Is it in fact faster to parse all the contents at once?
- Are there any size limitations for what can go into the browser's local storage as a single string?
- Can this be implemented in a clean and backwards compatible manner?
As of now this requires some experimentation.
What to change
(To be determined after some experimentation.)