summaryrefslogtreecommitdiff
path: root/src/adblock/adblockruletextmatchimpl.h
Commit message (Collapse)AuthorAgeFilesLines
* Improve the performance of AdBlockRuleTextMatchImplBenjamin Poulain2010-08-191-1/+1
| | | | | | | | | | Comparing unicode string without case sensitive is rather expensive because each codepoint must be converted, which is non trivial for unicode. This patch introduce a new argument of ::match() taking the encoded url in lowercase. This way, the conversion can be done only once for a lot of rules.
* Add a primitive text machter as an AdBlockRule implementationsBenjamin Poulain2010-08-181-0/+47
About 30% of the filter of easylist are just simple text matching. This new AdBlockRule implementation detects the simple occurences of this to match the url directly. On Qt 4.7, this reduce the time spend in AdBlock by around 20%.