Skip to content
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

[Discussion]: The bundle size is too damn high #1162

Open
peterhirn opened this issue Nov 20, 2024 · 1 comment
Open

[Discussion]: The bundle size is too damn high #1162

peterhirn opened this issue Nov 20, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@peterhirn
Copy link
Contributor

What is your idea?

I honestly didn't spent much time investigating why this is happening yet (tbd).

Shipping 5Mb (excl. wasm) for a minimal viewer app is insane, eg. bundled with astro/vite defaults:

bundle

Tree shaking doesn't seem to work. I'm hoping this can be fixed/improved by changing the way the schema-generator works.

References

#495

@peterhirn peterhirn added the enhancement New feature or request label Nov 20, 2024
@beachtom
Copy link
Collaborator

You are right the size is all the schema related information. Because there are about 4 different versions of IFC in circulation at the moment and each has a separate schema. I have reduced the size by several Mb over the last few months - but am out of ideas at this point for reducing it further. Except:

  1. Having the schema downloaded dynamically from a CDN - but I am not sure if this will actually help people that much, because if you are building a general app you will likely encounter all the files anyway.
  2. Again bundling specific versions of the schema seperately - so you can build an app for a specific given version - but I don't think this matches many people use cases

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants