vadimdemedes / yoga-layout-prebuilt

Prebuilt yoga-layout package
MIT License
47 stars 28 forks source link

Prebuild to WebAssembly too #1

Open DuncanMacWeb opened 5 years ago

DuncanMacWeb commented 5 years ago

It would be good if yoga-layout-prebuilt could load yoga-layout in WebAssembly format in environments which support it (Node 8+ and 80% of browsers). Our experiments suggest it would be 200–250K smaller and correspondingly faster. @vadimdemedes have you investigated this at all?

Relates to: diegomura/react-pdf#364

Skywalker13 commented 4 years ago

https://github.com/rickbutton/yoga-wasm is promising but (still) not working with react-pdf

hlolli commented 4 years ago

Is the emscripten option -s ALLOW_MEMORY_GROWTH not true for these asm/wasm compilations?

+1 for this idea. asm.js is a dying technology with little support and no development.

Skywalker13 commented 4 years ago

An other to test, maybe it works with react-pdf ? https://github.com/pinqy520/yoga-layout-wasm