Item12417: Foswiki::Attrs Could Try Harder
Priority: Normal
Current State: Closed
Released In: 1.2.0
Target Release: minor
Applies To: Engine
Component:
Branches: trunk
Foswiki::Attrs
is a performance-critical code segment, but is implemented suboptimally for an interpreted language. By detailed profiling I was able to extract several more pips before it squeaked, just by replacing
\w
with
[a-zA-Z0-9_]
for matching attribute names, and flattening variables used as constants.
--
CrawfordCurrie - 07 Mar 2013