slint/internal/compiler/llr
Olivier Goffart 762c21890c Compiler: be more granular for checking for explicit layout constraint
Layout code generates a lot of code and it may be beneficial not to
generate constraints if there is no constraints in that direction

Before the change:

cargo run -p slint-compiler -- examples/printerdemo_mcu/ui/printerdemo.slint -f rust | rustfmt | wc
  40014   86643 2010535
cargo run -p slint-compiler -- examples/gallery/gallery.slint -f rust | rustfmt | wc
  105715  229009 5434115

After this change:

cargo run -p slint-compiler -- examples/printerdemo_mcu/ui/printerdemo.slint -f rust | rustfmt | wc
  38873   83654 1925830
cargo run -p slint-compiler -- examples/gallery/gallery.slint -f rust | rustfmt | wc
  103817  224874 5316553

No measurable changes in compilation time.
2023-10-12 12:55:00 +02:00
..
optim_passes WIP: Add item_geometry to the ComponentVTable 2023-09-13 16:08:37 +02:00
expression.rs janitor: Fix clippy errors about wrong clone implementations 2023-09-20 20:23:38 +02:00
item_tree.rs WIP: Add item_geometry to the ComponentVTable 2023-09-13 16:08:37 +02:00
lower_expression.rs Compiler: be more granular for checking for explicit layout constraint 2023-10-12 12:55:00 +02:00
lower_to_item_tree.rs WIP: Add item_geometry to the ComponentVTable 2023-09-13 16:08:37 +02:00
pretty_print.rs Change item indices from usize to u32 2023-09-12 08:53:58 +02:00