Comments (4)
I had to learn that incremental compilation isn't enabled by default in release mode. Enabling it brought the build times back down to normal, but of course this is just masking the underlying problem.
from gltf.
The primary culprits are: serde + serde_derive + gltf-json
serde is known to be somewhat slow to compile. The derived serialization and deserialization code is monomorhpized, resulting in quite a lot of generated code. On the other hand, miniserde uses trait objects (dynamic dispatch), so much less code is generated (and will result in some performance loss). It may be worthwhile to explore miniserde
, but it has a substantially reduced set of customizations.
from gltf.
gltf-json is the main slowdown from my testing. (with LLD on windows, 1.64 nightly)
Release build of the whole gltf repo (cargo +nightly build --release -Z unstable-options --timings=html
)
Release build of bevy where gltf-json doesn't seem to block any crates from compiling, but still takes 40% of the overall time to compile.
from gltf.
Checking this with cargo-llvm-lines, a release build of gltf-json
expands to 577761 lines of llvm, with the vast majority of the time being spent in codegen.
edit: There's an open PR for serde_json that improves build times for me by over 50%.
from gltf.
Related Issues (20)
- `Accessor` implementation not conformant with specification HOT 1
- Fails to parse gltf with scenes without nodes
- How to edit contents of gltf? HOT 1
- gltf-derive fails to build with `edition = 2021`
- Publish 1.0.1 HOT 4
- Don't panic on any malformed glTF input HOT 1
- `gltf_json::extensions::material::Volume` produces incorrect null when serialized
- Is this still alive? HOT 2
- Add emissive KHR_material_emissive_strength extension
- Add helper method for converting image format
- image data formats HOT 2
- Consider transitioning `gltf-derive` to use `syn@2` instead of `syn@1` HOT 1
- Add an option to load R, RG, RGB images as RGBA. HOT 2
- Semver violating change in gltf-json v1.2 HOT 3
- Add Animations? HOT 1
- gltf-json 1.3 breaks semver HOT 3
- Allow importing large images
- Can we have a feature which accumulates all the other features in it?
- Expose Scheme API publicly or allow access to encoded images
- Panics on reading a large GLTF due to the .bin being more than ~4GB and `byteLength` using a u32 HOT 3
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 gltf.