Merged in feature/remove-selects (pull request #175)
b5d7855·Author: Joseph Parker·Closed by: David Dickinson·2019-07-05
Description
This improves the performance of the idx functions which return the global index (e.g. iglo in the g_lo layout) from the dimensional indices (e.g. it, ik, il, ie, is). We do this by replacing the (slow) select case(layout) structure with a single expression that applies for all layouts.
According to the indexing benchmarks in PR #171, this change speeds up indexing currently in next by about 40%. [Sigh. Table doesn’t render.]
This improves the performance of the
idx
functions which return the global index (e.g.iglo
in theg_lo
layout) from the dimensional indices (e.g.it
,ik
,il
,ie
,is
). We do this by replacing the (slow)select case(layout)
structure with a single expression that applies for all layouts.According to the indexing benchmarks in PR #171, this change speeds up indexing currently in
next
by about 40%. [Sigh. Table doesn’t render.]