[Webkit-unassigned] [Bug 51922] New: JSON.stringify processing time exponentially grows with size of object

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jan 5 05:59:15 PST 2011


https://bugs.webkit.org/show_bug.cgi?id=51922

           Summary: JSON.stringify processing time exponentially grows
                    with size of object
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: mirko.tschaeni at unblu.com


Created an attachment (id=77991)
 --> (https://bugs.webkit.org/attachment.cgi?id=77991&action=review)
Reproduces the bug, open index.html, it will show a report showing the processing time of JSON.stringify calls

JSON.stringify is very slow in WebKit (slower than the javascript JSON implementation from http://www.json.org). In addition the processing time grows exponentially to the size of the object that is passed to JSON.stringify. 

With bigger objects (resulting JSON string 600 kb) the processing time for the native JSON.stringify is more than 100 times bigger than the json.org implementation.

Google chrome (as well as firefox and ie8) does not have the problem. There native json is faster than json.org in most of the cases and if it is slower, then only marginally and the processing time is proportional to the size of the object passed to the JSON.stringify function.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list