Within the scope of the ncWMS application itself, profiling reveals that the performance-limiting steps of the above algorithm are coordinate transformation (steps 2–4) and the extraction of data from disk (step 5).
A full investigation of all the factors affecting performance is beyond the scope of this paper; we therefore confine ourselves here to a brief discussion of the optimizations we have implemented.