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

Performance Optimisations #19

Merged
merged 9 commits into from May 22, 2019
Merged

Performance Optimisations #19

merged 9 commits into from May 22, 2019

Conversation

@AndriusA
Copy link
Collaborator

AndriusA commented May 20, 2019

Optimisations to get in under the performance budget:

  • implements optimisation that merges together equivalent rules with different domain options
  • memory copying/allocation optimisations across request parsing and tokenisation

Also removes full-string domain option matching from compile-time option-enabled features

squeezes in under the performance target by ~5%

@AndriusA AndriusA requested a review from bbondy May 20, 2019
AndriusA added 2 commits May 21, 2019
Also removes most `[#inline]` annotations to an apparent gain/no loss in performance
The RwLock gets hit for most rules and requests, making it relatively costly. Going to simpler ones saves another few percent relative to target.

Downside is non-parallelised rule parsing from text lists
@bbondy
bbondy approved these changes May 22, 2019
@bbondy bbondy merged commit 3e84575 into master May 22, 2019
@AndriusA AndriusA deleted the optimisations branch Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.