EmbarkStudios / mirror-mirror

🪞 Powerful reflection library for Rust
Apache License 2.0
79 stars 2 forks source link

Investigate making the stack size of `Value` smaller #31

Closed davidpdrsn closed 7 months ago

davidpdrsn commented 1 year ago

Currently Value has a size of 32 bytes on the stack. Would be worth exploring if there are ways to make it smaller. Perhaps by keeping the larges variants in a separate type that is always boxed, something like Value::BigValue(Box<BigValue>).