I had the idea before - but loading them from the exported version (cache)
will disable weighting - also what is happen, if a file was changed while
assp was down?
It is not too much time needed for the optimization - max 20s I think.
Thomas
Von: "Grayhat" <grayhat@...>
An: "ASSP development mailing list" <assp-test@...>
Datum: 18.04.2010 18:26
Betreff: Re: [Assp-test] fixes and changed in 2.0.2_1.0.11
> If the regular expression optimization is used -
> ("./lib/Regex/Optimize.pm" installed and enabled) - and you want to
Thomas; about the regexp optimizer; it's a good idea; but I wonder if
it may be further improved (a little); see, you wrote that using the
optimizer, ASSP will delay upon startup due to the need to optimize
the various regular expressions; now... what about caching on a file
the optimized regexp ? The idea may be to check if the "cache file"
exists; if so, load each optimize regexp from it, check a "checksum"
(an MD5 or the like) against the unoptimized regexp and decide it
to use the cached version or if a re-optimization is needed (that is,
the checkum doesn't match); in such a case the textual regexp will
be optimized and stored into the cache file; the above will result in
a faster load of ASSP after the initial optimization and in a slight
slow down only in case one or more regexp are changed
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Assp-test mailing list
Assp-test@...
https://lists.sourceforge.net/lists/listinfo/assp-test
DISCLAIMER:
*******************************************************
This email and any files transmitted with it may be confidential, legally
privileged and protected in law and are intended solely for the use of the
individual to whom it is addressed.
This email was multiple times scanned for viruses. There should be no
known virus in this email!
*******************************************************
|