AdBlock Plus’s effect on Firefox’s memory usage
It's not just memory overhead, it is also CPU overhead.<p>One approach is to write the filtering engine from scratch. It is what I did, without looking at ABP's code beforehand in order to ensure a clean slate mind.<p>I didn't get it right the first time, I did spend <i>quite a large amount of time</i> benchmarking, measuring, prototyping, etc.<p>Once I was satisfied I had finally had a solid code base, I went and benchmarked it against ABP to find out how it compared:<p><a href="https://github.com/gorhill/httpswitchboard/wiki/Net-request-filtering:-overview#abp-filtering" rel="nofollow">https://github.com/gorhill/httpswitchboard/wiki/Net-request-...</a><p>And for HTTPSB's numbers, keep in mind there were an <i>extra over 50,000 rules</i> in the matrix filtering engine (something not found in ABP).<p>So I think this shows clearly ABP's code can be improved.