| Summary: | Consider parsing & analyzing JS in parallel for ES modules? | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jarred Sumner <jarred> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | john.david.dalton, mark.lam, webkit-bug-importer, ysuzuki |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
|
Description
Jarred Sumner
2023-07-25 20:34:00 PDT
As one point of reference In Bun, the time spent on Bun's transpiler and the time spent in the JSC lexer seem close. Making the transpiler run concurrently speeds up "vite dev" start time by 20%. We keep it single-threaded for the very first file since the main thread would just be waiting anyway. https://github.com/oven-sh/bun/assets/709451/9a047f39-2adb-4e77-baac-13c4ff000ef0 About 60ms is spent in JSC::Parser<JSC::Lexer<unsigned char>>::parseInner according to Instruments |