diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2023-03-08 23:42:46 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-09 09:12:46 +0530 |
commit | 4e8edafb398f52499f9e975ffb8765cdbd268f34 (patch) | |
tree | 34cd19b4b51386bfc8b8e76d1999e10a67f54522 /ext/fetch/lib.rs | |
parent | 0f9df733499da4dea563342fc19e842f04bd7a40 (diff) |
perf(core): over-allocate in ModuleMap when running from snapshot (#18083)
This commit changes "ModuleMap" initialization to over-allocate by 16
for vectors storing module information and module V8 handles. In 99%
cases there's gonna be at least one additional module loaded, so it's
very wasteful to have to reallocate when the module is executed (IIRC
Rust will double the size of the vector) and move all of the elements.
Diffstat (limited to 'ext/fetch/lib.rs')
0 files changed, 0 insertions, 0 deletions