gem / oq-engine

OpenQuake Engine: a software for Seismic Hazard and Risk Analysis
https://github.com/gem/oq-engine/#openquake-engine
GNU Affero General Public License v3.0
377 stars 273 forks source link

Investigate performance issue in Classical PSHA risk calculator #221

Closed larsbutler closed 11 years ago

acerisara commented 13 years ago

Just some notes on my side: as discussed yesterday, the bottleneck is the computation of the LREM (Loss Ratio Exceedance Matrix). The LREM computation is a step to get the final loss ratio curve. Since the LREM depends just on the vulnerability function, we can compute the LREM once and store it in KVS. This should improve a lot the performance. The function that computes the LREM is openquake.risk.classical_psha_based._compute_lrem(vuln_function).