Item12417: Foswiki::Attrs Could Try Harder

pencil
Priority: Normal
Current State: Closed
Released In: 1.2.0
Target Release: minor
Applies To: Engine
Component:
Branches: trunk
Reported By: CrawfordCurrie
Waiting For:
Last Change By: CrawfordCurrie
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

 
Topic revision: r2 - 07 Mar 2013, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy