-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Decouple from yoga-layout-prebuilt #30
Comments
does yoga have stuff that we dont need? |
We have to investigate that, surely yes, also the current build includes a lot of useless C++ glue code that is really useless and it compiles to asm.js. Wasm binary would be way more efficient, even though it would need a binary to be served like draco. |
that sounds amazing! |
WASM binary takes time to load tho but I doubt that yoga binary will be big so I think it's ok to ship as wasm |
if it suspends it would be ok if it takes a little to load, similar to gltf assets, textures and so on. |
Look at https://github.com/dead/typeflex It's only 23kb(gzip) While yoga-layout-prebuilt 78kb(gzip) |
@gut4 as i understand it has the same api? Looking pretty good, did you have any experience using it? |
Ok, it's not the same api, but potentially it can be migrated to without too much hassle (methink). However, I'd be happy to see some benchmarks |
We should build our version of yoga to reduce bundle size
The text was updated successfully, but these errors were encountered: