![]() # Objective - MaterialProperties uses HashMap for some data that is generally going to be really small. This is likely using more memory than necessary ## Solution - Use a SmallVec instead - I used the size a StandardMaterial would need for all the backing arrays ## Testing - Tested the 3d_scene to confirm it still works ## Notes I'm not sure if it made a measurable difference since I'm not sure how to measure this. It's a bit hard to create an artificial workflow where this would be the main bottleneck. This is very in the realm of microoptimization. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
LICENSE-APACHE | ||
LICENSE-MIT | ||
README.md |