Created attachment 77991 [details] 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.
Created attachment 77992 [details] Replacement for: Reproduces the bug, open index.html, it will show a report showing the processing time of JSON.stringify calls The first attachment had the test with large objects commented out. Use this attachment to reproduce the bug!
<rdar://problem/8822731>
Created attachment 80108 [details] Patch
Committed r76635: <http://trac.webkit.org/changeset/76635>
http://trac.webkit.org/changeset/76635 might have broken Leopard Intel Release (Tests)