Rework usage of Regular Expressions

In some cases regular expressions will be compiled in every instance that has been created. This behavior costs a lot of system performance.

To compile the regular expressions once per module would increase the speed by reducing the compile calls. Each function and class instance in the module can use the pre compiled re's to get an individual MatchObject instance.

The new behaviour should be thread safe also.

Examples

Benefit

A changed usage could improve delivery speed and reduce the system usage.


CategoryFeatureRequest

MoinMoin: FeatureRequests/ReworkRegularExpressionUsage (last edited 2007-10-29 19:20:33 by localhost)