PepiMK
2008-02-13, 11:39
Situation: the Firefox immunization slows down Firefox noticable.
Suspected: the algorithm used in Firefox to look up entries in the hosts file could be linear or otherwise not very performant.
Task: write a test application that simulates N lookups inside the blacklist files (assuming one website does, including pictures, have to look up various urls; maybe N = 50?). Once using linear lookup, once using an optimized search trie. Use a hostperm.1 size of M = 25000 entries.
Determine difference in lookup speed.
When finished: go through Firefox source, find out how Firefox looks up this table, and if it is just linear, propose to use an optimized blacklist lookup.