Post Reply 
Base: Speeding up ad-list
Mar. 15, 2009, 07:13 PM
Post: #14
RE: Base: Speeding up ad-list
As when we go to a page most of their ads use to come from only 4 or 5 sites, i had the idea of creating a list in memory wich would have the last matched keywords from the adlist. So in theory proxomitron would be faster because it would search before in the last matched keywords instead of the full list. I know proxomitron does a very good hashing of the list, but I'm testing this "caching" concept... comments are welcome as always Wink
Code:
$TST(
\1=((\w)\0|*((^(http|ftp)://|//)(http|.|/)\w)\0)
$TST(\0=(.|/|)($LST(Mem-Adlist)|$LST(Adlist))\9*)
)
($TST(\9=$LST(Mem-Adlist))|$ADDLST(Mem-Adlist,$WESC(\9)))
$SET(4=Ad-Href)

Edit: The filter is the same than i posted at first place, just the working version, not the forum version. I added a test for Mem-Adlist before than the full adlist. When some of the lists matched, do a test to see if the keyword matched is in the Mem-Adlist, if it isn't them add it to the Mem-Adlist.

edit: added the $WESC Thanks Sidki
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Base: Speeding up ad-list - lnminente - Feb. 19, 2009, 11:57 PM
RE: Base: Speeding up ad-list - whenever - Feb. 20, 2009, 06:34 AM
RE: Base: Speeding up ad-list - sidki3003 - Feb. 20, 2009, 06:53 AM
RE: Base: Speeding up ad-list - lnminente - Feb. 20, 2009, 05:16 PM
RE: Base: Speeding up ad-list - sidki3003 - Feb. 20, 2009, 05:41 PM
RE: Base: Speeding up ad-list - Kye-U - Feb. 20, 2009, 06:17 PM
RE: Base: Speeding up ad-list - sidki3003 - Feb. 20, 2009, 07:30 PM
RE: Base: Speeding up ad-list - lnminente - Feb. 20, 2009, 06:30 PM
RE: Base: Speeding up ad-list - Kye-U - Feb. 20, 2009, 06:32 PM
RE: Base: Speeding up ad-list - lnminente - Feb. 20, 2009, 07:37 PM
RE: Base: Speeding up ad-list - Kye-U - Feb. 21, 2009, 04:54 AM
RE: Base: Speeding up ad-list - Siamesecat - Feb. 21, 2009, 06:31 AM
RE: Base: Speeding up ad-list - lnminente - Feb. 21, 2009, 03:39 PM
RE: Base: Speeding up ad-list - lnminente - Mar. 15, 2009 07:13 PM
RE: Base: Speeding up ad-list - sidki3003 - Mar. 15, 2009, 08:35 PM
RE: Base: Speeding up ad-list - lnminente - Mar. 15, 2009, 09:47 PM
RE: Base: Speeding up ad-list - whenever - Mar. 16, 2009, 03:15 AM
RE: Base: Speeding up ad-list - lnminente - Mar. 16, 2009, 10:17 AM
RE: Base: Speeding up ad-list - sidki3003 - Mar. 16, 2009, 03:26 PM
RE: Base: Speeding up ad-list - lnminente - Mar. 16, 2009, 08:08 PM
RE: Base: Speeding up ad-list - ProxRocks - Mar. 17, 2009, 12:42 AM
RE: Base: Speeding up ad-list - lnminente - Mar. 17, 2009, 12:17 PM
RE: Base: Speeding up ad-list - lnminente - May. 27, 2009, 01:04 AM

Forum Jump: