[ET Trac] [Einstein Toolkit] #1143: Optimise calls to CCTK_VarDataPtr
Einstein Toolkit
trac-noreply at einsteintoolkit.org
Wed Oct 24 14:29:32 CDT 2012
#1143: Optimise calls to CCTK_VarDataPtr
-------------------------+--------------------------------------------------
Reporter: eschnett | Owner:
Type: enhancement | Status: new
Priority: major | Milestone:
Component: Cactus | Version:
Keywords: |
-------------------------+--------------------------------------------------
Cactus calls CCTK_VarDataPtr each time DECLARE_CCTK_ARGUMENTS is executed
for each grid function. This routine performs string looks and is thus
unreasonably expensive.
The attached patch remembers variable indices in static variables.
--
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1143>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit
More information about the Trac
mailing list