Skip to content
Snippets Groups Projects

Optimize do_remove_all_certs_received_by

Merged Pascal Engélibert requested to merge tuxmain/opti-remove-all-certs into master
  • Optimize do_remove_all_certs_received_by by factoring stuff from do_remove_cert
  • Fix off-by-one in benchmarking of the call remove_all_certs_received_by (benchmarking was against 1 certification less than the call)

This will reduce the weight of the root call remove_all_certs_received_by and of revocation. Emitted events are the same. A little optimization is still possible, as on_removed is still called N times and checks membership each time (only the last call will revoke membership), but it would require API changes, and the overhead is not that big.

Weights were updated with dummy values, not from benchmarking, so they don't reflect the optimization yet.

Fixes #254 (closed)

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading