Remove select case(layout) from indexing routines

Merged
#175 · Created  · Last updated

Merged pull request

Merged in feature/remove-selects (pull request #175)

b5d7855·Author: ·Closed by: ·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.]

0 attachments

0 comments

Loading commits...