Skip to content
Snippets Groups Projects

Speed up GenEvent::attribute_names

Merged Peter Onyisi requested to merge ponyisi/HepMC3:speedup-attribute-names into master
1 unresolved thread

Profiling indicated GenEvent::attribute_names was taking ~85% of runtime when reading a HepMC2 ASCII file. Replacing a linear-time search with a log-time search speeds up the function 150x in my tests.

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