Patches item #531571, was opened at 2002-03-18 13:13 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376687&aid=531571&group_id=22866
Category: JBossMQ Group: v3.0 Rabbit Hole (unstable) Status: Open Resolution: None Priority: 5 Submitted By: Loren Rosen (lorenrosen) Assigned to: Nobody/Anonymous (nobody) Summary: performance tuning for selector LIKE Initial Comment: It was taking about 60 ms to scan a 1000 messages with a selector containing a regular expression (with JDK 1.3.1... it was far worse with earlier JVMs). It turns out the code was recompiling the RE on every message tested. In addition to adding time overhead this probably produces lots of garbage. The patch changes the Operator class to retain the results of the RE compilation done the first time the selector is evaluated. (It might be more logical to compile the RE when the selector is parsed, but that change would be a bit more complicated to make). The RE wrapper code (which wraps the gnu regexp code) was moved into a separate class for clarity. Some other small changes were made to improve performance and clarity. End result is a 2X speed-up (from 60ms/1000msg to 30/1000) ---------------------------------------------------------------------- You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=376687&aid=531571&group_id=22866 _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development