Optimize Disaggregation Calculator

Bug #1174692 reported by Damiano Monelli
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenQuake Hazard Library
Fix Released
High
Damiano Monelli

Bug Description

To speed up disaggregation calculations, we can remove the loop over sources currently present in the '_arrange_data_in_bins' method (https://github.com/gem/oq-hazardlib/blob/master/openquake/hazardlib/calc/disagg.py#L332), and replace it with a vectorized calculation.

Revision history for this message
Damiano Monelli (monelli) wrote :

I attach here two profile reports with the original loop (disagg_profile_no_optimization.txt) and without (diss_profile_optimized.txt)

Changed in oq-hazardlib:
status: New → Fix Committed
Changed in oq-hazardlib:
milestone: none → 0.12
Changed in oq-hazardlib:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.