add opt level notice

This commit is contained in:
Naxdy 2024-04-03 18:14:39 +02:00
parent ead9156400
commit a19cd9cd78
Signed by: Naxdy
GPG key ID: CC15075846BCE91B
2 changed files with 4 additions and 2 deletions

View file

@ -72,7 +72,9 @@ debug = 2
debug-assertions = false
incremental = false
lto = 'fat'
opt-level = 1
# opt level needs to be benchmarked after every major feature
# due to the changes in binary size and alignment
opt-level = 2
overflow-checks = false
# do not optimize proc-macro crates = faster builds from scratch

View file

@ -584,8 +584,8 @@ pub async fn update_stick_states_task(
SIGNAL_STICK_STATE.signal(current_stick_state.clone());
ticker.next().await;
yield_now().await;
ticker.next().await;
if let Some(new_config) = SIGNAL_CONFIG_CHANGE.try_take() {
controller_config = new_config;