Skip to content

Skip thread-local state sync for scripts without tracking functions#108

Open
dloss wants to merge 1 commit intomainfrom
claude/optimize-rhai-startup-DqBHY
Open

Skip thread-local state sync for scripts without tracking functions#108
dloss wants to merge 1 commit intomainfrom
claude/optimize-rhai-startup-DqBHY

Conversation

@dloss
Copy link
Owner

@dloss dloss commented Jan 2, 2026

Add compile-time detection of tracking function usage (track_count,
track_sum, etc.) and skip expensive set/get_thread_tracking_state
calls when scripts don't use them. This reduces per-event overhead
for simple filter and exec scripts.

Add compile-time detection of tracking function usage (track_count,
track_sum, etc.) and skip expensive set/get_thread_tracking_state
calls when scripts don't use them. This reduces per-event overhead
for simple filter and exec scripts.
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.

2 participants