https://bugzilla.wikimedia.org/show_bug.cgi?id=18147

           Summary: Faster logic for Abuse Filter parser
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: AbuseFilter
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


The attached patch improves the execution speed of AbuseFilterParser::nextToken
through a series of small changes.

The most significant impact comes from modifying the application of regex to
focus on the immediate offset and not look downstream unnecessarily.  It also
stops radixRegex from giving empty string matches.

This patch preserves all current behavior and is transparent to the user.

Benchmarking done with function evaluation and variable lookup hacked off, saw
a ~20% improvement in the parsing speed for rules after applying this patch.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to