Skip to content
New issue

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

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

Already on GitHub? # to your account

Faster ModSummary fingerprints #1485

Merged
merged 4 commits into from
Mar 3, 2021
Merged

Conversation

pepeiborra
Copy link
Collaborator

The computation of the GetModSummary rule fingerprints was very suboptimal.
This change:

  • Avoids calling Hdr.getOptions twice
  • Shares the relevant part of the fingerprint between GetModSummary and GetModSummaryWihoutTimestamps
  • skips the timestamps altogether, since we already fingerprint the preprocessed buffer.
  • Avoids calling show in the fingerprint computation
  • Uses efficient fingerprint primitives

The computation of these fingerprints was very suboptimal.
This change:

- Avoids calling Hdr.getOptions twice
- Shares the relevant part of the fingerprint between GetModSummary and GetModSummaryWihoutTimestamps
- skips the timestamps altogether, since we already fingerprint the preprocessed
- buffer.
- Avoids show in the fingerprint computation
- Uses efficient fingerprint primitives
@pepeiborra pepeiborra force-pushed the faster-modsummary-fingerprint branch from 392c092 to 115d063 Compare March 3, 2021 16:30
@pepeiborra pepeiborra requested a review from wz1000 March 3, 2021 17:02
@pepeiborra pepeiborra merged commit 4bcd0c6 into master Mar 3, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants