.
D 2007-06-14T17:08:36
J assignee dkf
J closedate 2007-06-14T10:08:36
J closer dkf
J icomment Logged\sIn:\sYES\s\nuser_id=79902\nOriginator:\sNO\n\nI'm\snot\squite\ssure\swhat\sI'm\ssupposed\sto\sdo\sto\strigger\sthe\schange\s(all\sthe\spatterns\salready\shave\s^\scharacters!)\sbut\sI\swould\snote\sthat\syou\sseem\sto\sbe\sgoing\sout\sof\syour\sway\sto\smake\syour\scode\sinefficient.\sIn\sparticular,\syou\suse\slots\sof\sruntime-generated\spatterns,\swhich\smeans\sthat\syou\sdefeat\sboth\sthe\sin-value\sand\sper-thread\sRE\scaches,\sforcing\srecompilation\sof\seach\spattern\severy\stime\sthrough\sthe\sloop.\sThat\ssucks,\sbut\syou've\smanaged\sto\screate\sa\shorrible\sdegenerate\scase.\n\nIf\syou\schange\syour\scode\sso\sthat\syou\skeep\seach\s*whole*\sRE\sin\sthe\s"global"\sarray\sinstead\sof\sjust\sfragments,\syou'll\sfind\sthe\scode\sgoes\smuch\sfaster.\s(Alternatively,\suse\sfewer\sREs\sso\sthat\sthe\sper-thread\scache\sisn't\sexceeded,\sbut\sthat\smight\snot\sbe\seasy\swith\sreal-life\sREs.)\n\nOtherwise,\sI've\sno\sidea\swhat\sI'm\ssupposed\sto\sdo\sabout\sthis\sto\smagically\smake\syour\scode\sefficient.\s(Caching\sRE\sfragments\swould\sbe\shorribly\stricky\sto\simplement\s-\sit\srequires\slots\sof\schanges\sin\slots\sof\splaces,\sincluding\swholly\snew\sAPIs\s-\sbut\sthat's\sthe\sonly\sthing\sI\scan\sthink\sof\swhich\swould\sguarantee\sto\smake\syour\scode\szippy...)\n
J login dkf
J mimetype text/plain
J resolution Wont\sFix
J status Pending
J username dkf
K 1737021fffffffffffffffffffffffffffffffff
U dkf
Z f683ff69c00a8dda64e3a50c2eca24ae