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

       Web browser: ---
             Bug #: 29103
           Summary: Significant speedup for doQuotes
           Product: MediaWiki
           Version: 1.19-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: Page rendering
        AssignedTo: wikibugs-l@lists.wikimedia.org
        ReportedBy: w...@member.fsf.org
    Classification: Unclassified


Created attachment 8569
  --> https://bugzilla.wikimedia.org/attachment.cgi?id=8569
A new version of doQuotes

Attached is a patch that alters doQuotes, a member of Parser.

Initial experimentation seems to show that the altered doQuotes runs in about
two-thirds the time of the original version.

The main alteration is that quote groups in $arr are encoded using integers,
not strings.  This both offers a speedup, and (in my opinion) makes the code
more readable.

There are a few other alterations of minor importance.

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

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to