chore: optimize resource usage (#162)

* avoid string allocation

* cache image

* .

* .

* .

* fix
This commit is contained in:
reya
2025-09-23 09:03:48 +07:00
committed by GitHub
parent fb3da096f8
commit 9abcc25f32
25 changed files with 281 additions and 214 deletions

View File

@@ -29,10 +29,10 @@ macro_rules! init {
#[macro_export]
macro_rules! shared_t {
($key:expr) => {
SharedString::new(t!($key))
SharedString::from(t!($key))
};
($key:expr, $($param:ident = $value:expr),+) => {
SharedString::new(t!($key, $($param = $value),+))
SharedString::from(t!($key, $($param = $value),+))
};
}