Change request #1289
Reduce extensive usage of dynamic_cast.
Status: | In Progress | Start date: | 07/22/2014 | ||
---|---|---|---|---|---|
Priority: | High | Due date: | |||
Assigned To: | Knödlseder Jürgen | % Done: | 10% | ||
Category: | - | ||||
Target version: | - | ||||
Duration: |
Description
There is a quite extensive usage of dynamic_cast in GammaLib which somewhat slows down executing time. There are ample examples in the response classes, for example GResponse::irf
to percolate down to diffuse source models. Here, adding an enumeration that identifies the model type would allow for a much faster switch statement.
Recurrence
No recurrence.
History
#1 Updated by Knödlseder Jürgen over 10 years ago
- Status changed from New to In Progress
- Assigned To set to Knödlseder Jürgen
- % Done changed from 0 to 10
This has already started and some class codes have been introduced.