diff options
author | Bartek Iwańczuk <biwanczuk@gmail.com> | 2023-02-21 21:12:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-21 21:12:22 +0100 |
commit | 69c0b05f7ab72f957ce7685998d3f424fb7e812c (patch) | |
tree | 7c4cf2b80cc3af8f968cbce460e05d255e749eb4 /cli/tsc/99_main_compiler.js | |
parent | 3479bc76613761cf31f7557d482e691274c365f1 (diff) |
refactor(core): More efficient serde for ES modules in snapshot (#17856)
Instead of relying on "serde_v8" which is very inefficient in
serializing enums, I'm hand rolling serde for "ModuleMap" data
that is stored in the V8 snapshot to make ES modules
snapshottable.
```
// this branch
Benchmark #2: ./target/release/deno run empty.js
Time (mean ± σ): 21.4 ms ± 0.9 ms [User: 15.6 ms, System: 6.4 ms]
Range (min … max): 20.2 ms … 24.4 ms
// main branch
Benchmark #2: ./target/release/deno run empty.js
Time (mean ± σ): 23.1 ms ± 1.2 ms [User: 17.0 ms, System: 6.2 ms]
Range (min … max): 21.0 ms … 26.0 ms
```
Diffstat (limited to 'cli/tsc/99_main_compiler.js')
0 files changed, 0 insertions, 0 deletions