This website requires JavaScript.
Explore
Help
Sign in
leyoda
/
libcosmic
Watch
1
Star
0
Fork
You've already forked libcosmic
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
1fce5df160
libcosmic
/
cosmic-theme
/
src
/
model
/
layout.rs
5 lines
69 B
Rust
Raw
Normal View
History
Unescape
Escape
wip: calculate theme using new method
2023-08-03 19:30:08 -04:00
#[
derive(Default)
]
pub
struct
Layout
{
perf: inline public getters/setters, and use non-generic inner functions To reduce compile-times and avoid some overhead to binary size, this will modify some of our generic functions to use non-generic inner functions where possible. The inner functions are marked carefully with `#[inline(never)]` to prevent being inlined by LLVM at their callsites While looking for generic functions to optimize, I have also taken the opportunity to annotate public non-generic getters and setters with `#[inline]` to ensure that LLVM will inline them across crate boundaries. By default, only generic functions are automatically inlined, and only when enabling fat LTO are constant functions reliably inlined across crate boundaries.
2025-03-21 03:17:59 +01:00
corner_radii
:
[
u32
;
4
]
,
}
Reference in a new issue
Copy permalink