When run inside larsoft, G4 causes on order 600k depos to be fed to WCT simulation. This leads to an ~hours/event of running time. A simple test that mostly just drifts:
Some doubling:
5591 depos 1.2 s (0.2 mm)
11181 depos 3.2 s (0.1 mm)
22361 depos 11.5 s (0.05 mm)
44722 depos 44.5 s (0.025 mm)
Roughly O(N^2)....
The problem is in the loop in flush_ripe(). Trial fix is to change xr.depos into a sorted set and then quit from the loop as soon as now is reached.
When run inside larsoft, G4 causes on order 600k depos to be fed to WCT simulation. This leads to an ~hours/event of running time. A simple test that mostly just drifts:
Some doubling:
Roughly O(N^2)....
The problem is in the loop in
flush_ripe()
. Trial fix is to changexr.depos
into a sorted set and then quit from the loop as soon asnow
is reached.