Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Improve the performance of AdBlockRuleTextMatchImpl | Benjamin Poulain | 2010-08-19 | 1 | -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. | ||||
* | Split AdBlock rule in two classes to move the implementation out of it | Benjamin Poulain | 2010-08-18 | 1 | -0/+47 |
In order to make special matching rules, we need specialization of the implementation depending on the type of rule. The previous AdBlockRule was entierly based on regexp. The new one is only a factory to a AdBlockRuleImpl, and delegate everything to this implementation. This will allow faster specialization of the ad block rules in the future. |