Summary: Use strtr instead of str_replace when possible
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: General/Unknown
            Blocks: 700

The PHP function strtr is like 4 times faster than str_replace and would be
pretty useful to use in MediaWiki in many places.

In the source code, I've noticed many replacements of underscores to spaces and
vice versa, often in the form str_replace("_", " ", $foo), whereas strtr($foo,
"_", " ") is much faster.

Configure bugmail:
------- 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

Reply via email to