mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 06:41:14 +00:00
![]() The binding setup functions (set_binding, set_animated_binding, etc.) are taking the binding basically as an `impl Fn() -> T`, which means each call site creates a new copy. The bodies of these can be quite big. Since most of our uses follow the pattern of just capturing the samereduce the number of copies needed parameter, we can reduce the number of copies needed by providing wrappers. With rustc 1.54.0 on my mbp and debug, the build time of touch ../ui/printerdemo.60 cargo rustc goes from 1m:15s down to 42s, and total llvm lines goes from 2079842 down to 1134237. |
||
---|---|---|
.. | ||
sixtyfps-cpp | ||
sixtyfps-node | ||
sixtyfps-rs | ||
sixtyfps-wasm-interpreter |