Skip to content

Conversation

@nornagon
Copy link
Contributor

@nornagon nornagon commented Feb 16, 2023

This works around WebAssembly memory limits.

I tried to benchmark this using the code in bench/, but it seems like that code is stale? I couldn't get it to run using the instructions :(

Wrapping WebAssembly.instantiate in console.time showed it takes around 0.1ms on my machine on average, though, which is promising.

This approach would also mean you could drop SourceMapConsumer.destroy, as the WASM memory would be automatically GC'd.

Fixes #476.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Frequently hitting 'unreachable' errors with many source maps in memory

1 participant