# WebAssembly streaming compile support

**URL:** <https://devforum.zoom.us/t/webassembly-streaming-compile-support/10635>\
**Category:** Web\
**Created:** [April 2, 2020, 11:13am UTC](https://devforum.zoom.us/t/webassembly-streaming-compile-support/10635 "2020-04-02T11:13:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomofumi.asakawa](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@tomofumi.asakawa](https://devforum.zoom.us/u/tomofumi.asakawa)\
**Post date:** [April 2, 2020, 11:13am UTC](https://devforum.zoom.us/t/webassembly-streaming-compile-support/10635/1 "2020-04-02T11:13:18Z")

</div>

**Description**  
Dear Zoom,

We are trying to integrate Zoom into our web application running on our device which is relatively poor performance and has a browser based platform.

Our trouble is that joining to a Zoom meeting by our application is very time consuming.

As a result of our investigation, we have found that compiling the wasm files takes a long time and the compiled objects are not cached and compiling run every time joining.

Could you use WebAssembly.instantiateStreaming() to cache the compiled objects by browsers instead of using WebAssembly.instantiate()?

Best regards,

**Which version?**  
1.7.2

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 3, 2020, 12:25am UTC](https://devforum.zoom.us/t/webassembly-streaming-compile-support/10635/2 "2020-04-03T00:25:18Z")

</div>

Hey @tomofumi.asakawa, thanks for posting and using Zoom!

Have you tried using the [local version](https://www.npmjs.com/package/@zoomus/websdk), and caching the files (`node_modules/@zoomus/websdk/dist/lib/`) on your end?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tomofumi.asakawa](https://avatars.discourse-cdn.com/v4/letter/t/46a35a/32.png) [@tomofumi.asakawa](https://devforum.zoom.us/u/tomofumi.asakawa)\
**Post date:** [April 3, 2020, 6:39am UTC](https://devforum.zoom.us/t/webassembly-streaming-compile-support/10635/3 "2020-04-03T06:39:42Z")

</div>

Hi tommy,

Thanks for your answer.

Yes, we are using the local version and caching for fetching the .wasm files is done by HTTP cache mechanism or the Zoom SDK by using IndexedDB.

But what we require is not caching the .wasm files but caching the compiled WebAssembly codes.

The only way to cache compiled WebAssembly codes is to use WebAssembly.instantiateStreaming() for now.

[https://v8.dev/blog/wasm-code-caching#algorithm](https://v8.dev/blog/wasm-code-caching#algorithm)

Regards,  
Asakawa

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 3, 2020, 7:47pm UTC](https://devforum.zoom.us/t/webassembly-streaming-compile-support/10635/4 "2020-04-03T19:47:09Z")

</div>

Hey @tomofumi.asakawa,

I see, thanks for the explanation. I will talk to the team about using `WebAssembly.instantiateStreaming()`.

-Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 8:18pm UTC](https://devforum.zoom.us/t/webassembly-streaming-compile-support/10635/5 "2020-08-21T20:18:04Z")

</div>

Closed on August 21, 2020, 8:18pm UTC


