Skip to content

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
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.

2 participants