Change request #1289

Reduce extensive usage of dynamic_cast.

Added by Knödlseder Jürgen over 10 years ago. Updated over 10 years ago.

Status:In ProgressStart date:07/22/2014
Priority:HighDue 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.

Also available in: Atom PDF