Comments (5)
Would vote against this, the WASM file as a standalone web resource enables browsers to cache the compiled code, reducing subsequent startup times by skipping compilation. More info here: https://v8.dev/blog/wasm-code-caching
I am by no means a chrome expert, but I expect this caching to break if we somehow bundle the wasm inside the js resource, they specifically mention:
Cached compiled code is associated with the URL of the .wasm resource, which makes it easy to look up without having to scan the actual resource. This means that changing the URL of a resource (including any query parameters!) creates a new entry in our resource cache, which also requires a complete recompile and creates a new code cache entry.
Could be this info is out of date though, no idea.
from web-ifc.
I wonder if there is a way to actually bundle/encapsulate web-ifc.wasm
inside web-ifc-api.js
and web-ifc-api-node.js
?
from web-ifc.
I wish there was a way, it would be definitely cleaner 🤔 But as far as I know, the WASM file is not interpreted the same way as JS (they are precompiled), so I suspect that for that we need to do a couple of reverse-engineering hacks (e. g. generate the WASM file in runtime). Would this runtime-generation be worth for eliminating the wasm file? Honestly, I have no idea.
from web-ifc.
have a look at this:
https://github.com/mrdoob/three.js/blob/dev/examples/jsm/libs/meshopt_decoder.module.js#L8-L15
isnt the wasm code here ?
from web-ifc.
Hum, might be. Feel free to dig into this, could be nice if it removes the WASM file handling!
from web-ifc.
Related Issues (20)
- [Bug]: Dimension marker not removed after measurement disabled HOT 1
- [Bug]: Long time to process and incorrect computed mesh of an IFC Element IfcFlowTerminal type HOT 4
- [Feat]: enable customLocateFileHandler function for webIfc in IfcLoader
- [Feat]: Create IFC compliant GUIDs when using IfcGloballyUniqueId
- [Bug]: HOT 2
- [Bug]: Large Express IDs will cause extra memory allocation
- Wall not rendered HOT 5
- IfcBooleanClippingResult not rendered correctly
- [Bug]: IFC files involving IFCCLOSEDSHELL entities appear to look weird, and some of the faces appear to be stretched HOT 2
- Allow to get the geometry of Ifc Structural analytical model items HOT 1
- [Bug]: The GetLine() API method has an error in parsing Chinese, which may be caused by Unicode encoding. HOT 1
- [Bug]: Link of Demo and link of actual build is different HOT 1
- [Bug]: Profiler Geometry not showing HOT 1
- Possible Bug - IFC model not loading correctly. HOT 9
- [Bug]: can't read property 225 of an IFC model HOT 1
- [Bug]: Geometry error with many version from @0.0.46 to @0.0.56 HOT 4
- [Bug]: Colors not displaying correctly
- [Bug]: Model doesn't display anything
- [Feat]: Output file size when build bundler. HOT 1
- [Bug]: After reading a text with special character '\X\80' becomes all texts with special characters unreadable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web-ifc.