Skip to content

Conversation

@timfish
Copy link
Member

@timfish timfish commented Sep 15, 2025

I noticed that the auto-generated code has large side-effects which will impact app startup time. We should only be loading the wasm if and when the library is actually used.

This PR adds a wrapper which means the wasm only gets loaded the first time the create method is called.

@timfish timfish marked this pull request as ready for review September 15, 2025 13:47
@timfish timfish requested a review from jsumners-nr September 17, 2025 18:55
@timfish timfish requested review from bizob2828 and removed request for bizob2828 September 18, 2025 15:18
@timfish timfish merged commit 399e942 into main Sep 19, 2025
1 check passed
@timfish timfish deleted the feat/lazily-load-wasm branch September 19, 2025 12:05
@timfish timfish mentioned this pull request Sep 19, 2025
timfish added a commit to apm-js-collab/tracing-hooks that referenced this pull request Sep 19, 2025
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.

4 participants