Bug 213498 - We should have a JSON.parse bytecode
Summary: We should have a JSON.parse bytecode
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-22 19:02 PDT by Keith Miller
Modified: 2020-06-22 19:02 PDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Keith Miller 2020-06-22 19:02:51 PDT
If a script has a very large JSON payload we currently allocate bytecode to initialize the object proportionally to the size of the object. This is very inefficient since most JSON massive objects are only initialized once. Instead, we should have a bytecode that takes a source position to parse as JSON.