Skip to content

Conversation

@tmeinlschmidt
Copy link

Replace repeated string formatting with precomputed key lookups in the 5second timer hot path.

  • Add _SlotKeys namedtuple and _DESS_KEYS tuple for schedule settings keys, eliminating 384 str.format() calls per tick
  • Rewrite windows() to skip 7 remaining lookups for empty slots (start == 0) using early-exit
  • Merge max-schedule and current-window loops into single pass

Replace repeated string formatting with precomputed key lookups
in the 5second timer hot path.

- Add _SlotKeys namedtuple and _DESS_KEYS tuple for schedule
settings keys, eliminating 384 str.format() calls per tick
- Rewrite windows() to skip 7 remaining lookups for empty slots
(start == 0) using early-exit
- Merge max-schedule and current-window loops into single pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant