https://bugzilla.wikimedia.org/show_bug.cgi?id=72205
Bug ID: 72205
Summary: Parser::doBlockLevels performs poorly under HHVM
Product: MediaWiki
Version: unspecified
Hardware: All
OS: All
Status: NEW
Keywords: hhvm
Severity: normal
Priority: Unprioritized
Component: Parser
Assignee: [email protected]
Reporter: [email protected]
Web browser: ---
Mobile Platform: ---
Parser::doBlockLevels() constructs regular expressions with unique strip
markers. Each regular expression pattern is turned into a StaticString, which
HHVM uses as a lookup key for the cached PCRE table. Since patterns with strip
markers are unique by design, they are cache misses, and they get compiled and
cached.
The results are:
* The PCRE table fills up with garbage (patterns that are identical save for
the strip markers).
* Memory bloats with pattern StaticStrings.
--
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