slint/api
Simon Hausmann b3529d1b75 Rust: Speed up compilation times of generated code
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.
2021-07-30 09:22:20 +02:00
..
sixtyfps-cpp Test for angle in the C++ interpreter API 2021-07-26 17:36:02 +02:00
sixtyfps-node Document that angles are represented in degrees at run-time 2021-07-26 17:36:02 +02:00
sixtyfps-rs Rust: Speed up compilation times of generated code 2021-07-30 09:22:20 +02:00
sixtyfps-wasm-interpreter Use impl Default instead of new() constructors 2021-07-12 13:22:25 +02:00