SA Bugzilla – Bug 7496
Speed up rule parsing on startup
Last modified: 2018-02-06 05:11:31 UTC
Created attachment 5475 [details] Proposed fix. This commit does several tricks to speed up startup code including - use index to avoid unnecessary regexes - use tr when instead of a match regex. - elsif instead of sequential if checks for a string match - one time regex compiling (don't believe the rumors that the "o" modifier doesn't do anything on unthreaded perl)
Thanks. 3.4: Committed revision 1823274. Trunk: Committed revision 1823275.