-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: improve shared data structure peformance
The data that is synced across threads for incoming requests needs to be stored in a data structure that facilitates udpating the underlying data at runtime so that up-to-date search results can be served. The previous implementation utilized Mutexes to acquire read access for searching and write access to update the underlying data structure. With an optimized data structure for frequent reads and infrequent writes the performance can be improved significantly while eliminating cross-thread syncronization slowdowns. This commit also introduces some profiling tools for the development environment provided in the nix flake.
- Loading branch information
Showing
13 changed files
with
569 additions
and
423 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.