On Fri, 25 Aug 2006 01:47:49 +0200, Marcus Bauer wrote > IMHO you should get a significant speed gain if you try splitting the > problem into two stages: > > 1) figure out which botanists appear in the text > 2) transform them into links > > Thus if I've understood your problem correctly, adding stage 1) to your > code should speed it up by a factor of 100 and drop the memory usage > close to zero (assuming a list of 5000 botanists and a text size of 100k > and a dozen mentioned botanists):
GREAT !!!!!!!!!!!!!! It works real fine. On a text of 3982 bytes, with a list of 2692 entries, it takes around 0.3s instead of 12s !!! That's magic. Thanks a lot. Et merci aux autres aussi pour leurs idées ;-) Yann -- __________________________________________________________ Yann Cochard : http://yanncochard.com/ Au Cactus Francophone : http://www.cactuspro.com/ Kaella, Knoppix Linux Azur : http://kaella.linux-azur.org Linux-Azur : http://www.linux-azur.org Désinscriptions: http://www.linux-azur.org/liste.php3 **** Pas de message au format HTML, SVP ****
