|
Base: Speeding up ad-list
|
|
Feb. 20, 2009, 06:53 AM
Post: #3
|
|||
|
|||
|
RE: Base: Speeding up ad-list
Regarding speed -- I don't know if this is of any relevance to the Base Config approach, or even applicable, but i thought i'd share:
When switching to Paul Rupe's 3-list approach (AdHosts, AdDomains, AdPaths), i got a significant speed boost, mainly because the list invoking expression could be much better tailored to the actual list content. There is a fourth list, "AdList", which acts as a hub for the other lists. I was messing around a lot with it to get it right. Now an (off-domain host testing) entry looks like: Code: http(s|):\\+/\\+/Same test with "ftp(s|):\\+/\\+/" and "//". I've never seen an FTP - let alone secure FTP - ad server. That test is just still in to keep that list hashable (and - to a lesser extend - for completeness). Most of above code isn't exactly interesting, but the tailored list invocation expressions work pretty well for me: AdHosts: No wildcarding needed. AdDomains: ([^/]++.|) AdPaths: [^/?]+*[/._?&;=-] |
|||
|
« Next Oldest | Next Newest »
|

Search
Member List
Calendar
Help





![[-]](images/ONi/collapse.gif)