mashephe / AmpTools

A utility library for performing amplitude analysis on particle physics data.
20 stars 12 forks source link

Calc intensities cache opt #134

Closed mashephe closed 6 months ago

mashephe commented 6 months ago

This change reorders a few loops to enhance computational efficiency. In both the AmplitudeManager and the Amplitude class loops over events are moved to the innermost loop. This increases the rate at which desired data in the large arrays end up in the CPU cache. Both changes result in significant speed gains (several tens of percent) for CPU based fitting.