Ali Mohammad Pur
c0223befe1
LibWasm: Avoid frequent re/deallocations while validating expressions
...
Freeing and reallocating these vectors was ~6% of runtime when
validating some web-based game.
2025-10-01 23:47:29 +02:00
Ali Mohammad Pur
f7bdc596b4
LibWasm: Avoid allocations for the label stack as much as possible
...
Namely, find an upper bound at validation time so we can allocate the
space when entering the frame.
Also drop labels at once instead of popping them off one at a time now
that we're using a Vector.
2025-08-26 15:20:33 +02:00
Ali Mohammad Pur
8af095f797
LibWasm: Make Wasm::Validator::Stack hold a Vector instead of inheriting
2025-08-08 12:54:06 +02:00
Ali Mohammad Pur
dc67f0ad4e
LibWasm: Hold on to the stack depth for expressions in the validator
...
This allows preallocating the value stack when pushing frames, avoiding
repeated reallocs and copies.
2025-08-08 12:54:06 +02:00
Timothy Flynn
93712b24bf
Everywhere: Hoist the Libraries folder to the top-level
2024-11-10 12:50:45 +01:00