Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update vectorscan-rs to v0.0.3 #218

Closed
wants to merge 4 commits into from
Closed

Update vectorscan-rs to v0.0.3 #218

wants to merge 4 commits into from

Conversation

bradlarsen
Copy link
Collaborator

The newer vectorscan-rs release implements several additional traits for the types it exposes, including Clone.

In Nosey Parker scanning, each time a scanning thread is spawned, a matching context needs to be created. With the changes here, a single initial context is cloned rather than a new one being reinitialized from scratch. This saves several CPU seconds on some larger scanner inputs.

(What would be even better is if each scanner thread were long-lived and initialized exactly once. But this is difficult to control using Rayon.)

@bradlarsen bradlarsen added performance Related to runtime performance techdebt Technical debt labels Aug 22, 2024
@bradlarsen bradlarsen closed this Aug 22, 2024
@bradlarsen
Copy link
Collaborator Author

Closed as duplicate; these changes are going into #216

@bradlarsen bradlarsen deleted the update-vectorscan branch August 22, 2024 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Related to runtime performance techdebt Technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant