[Webkit-unassigned] [Bug 10722] New: WebKit spends 5% of total time parsing WorldCup.svg in bad parsing code

bugzilla-daemon at opendarwin.org bugzilla-daemon at opendarwin.org
Mon Sep 4 01:34:28 PDT 2006


http://bugzilla.opendarwin.org/show_bug.cgi?id=10722

           Summary: WebKit spends 5% of total time parsing WorldCup.svg in
                    bad parsing code
           Product: WebKit
           Version: 420+ (nightly)
          Platform: Macintosh
        OS/Version: Mac OS X 10.4
            Status: NEW
          Keywords: EasyFix
          Severity: normal
          Priority: P4
         Component: SVG
        AssignedTo: webkit-unassigned at opendarwin.org
        ReportedBy: macdome at opendarwin.org


WebKit spends 5% of total time parsing WorldCup.svg in bad parsing code

These two (misdesigned) lines in SVGPathParser::parseSVG() account for over 5%
of total time:
d = d.replace(',', ' ');
d = d.simplifyWhiteSpace();

No need to do either.  Just encoding that logic into the parser and do a single
walk over the string would be much faster.

Somewhere there is a darin thinking "i told you so..." ;)


-- 
Configure bugmail: http://bugzilla.opendarwin.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list