Skip to content

refactor: enhance hooks management with indexing and synchronization#74

Merged
soulteary merged 1 commit intomainfrom
2026-01-06-ypua
Jan 6, 2026
Merged

refactor: enhance hooks management with indexing and synchronization#74
soulteary merged 1 commit intomainfrom
2026-01-06-ypua

Conversation

@soulteary
Copy link
Copy Markdown
Owner

Introduced a hooks index to improve the efficiency of hook lookups, reducing the need for full scans of LoadedHooksFromFiles. Added functions to build, update, and remove indices in a thread-safe manner using mutexes. Updated the ReloadHooks and ParseAndLoadHooks functions to maintain the index, ensuring synchronization between loaded hooks and their identifiers. This change enhances performance and reliability in hook management.

Introduced a hooks index to improve the efficiency of hook lookups, reducing the need for full scans of LoadedHooksFromFiles. Added functions to build, update, and remove indices in a thread-safe manner using mutexes. Updated the ReloadHooks and ParseAndLoadHooks functions to maintain the index, ensuring synchronization between loaded hooks and their identifiers. This change enhances performance and reliability in hook management.
@soulteary soulteary merged commit a08585e into main Jan 6, 2026
2 checks passed
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