Speed up GenEvent::attribute_names
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.
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.