xray/xray — pull request #172 by shoyer (2014-06-24 05:10:25+00:00)
Title: {DataArray,Dataset}.indexes no longer creates a new dict

According to the toy benchmark below, this shaves off between 20% (diff-indexes) to 40% (same-indexes) of xray's overhead for array math:

import numpy as np
import xray
x = np.random.randn(1000, 1000)
y = np.random.randn(1000, 1000)
dx = xray.DataArray(x)
dy = xray.DataArray(y)
%timeit x + x # raw-numpy
%timeit dx + dx # same-indexes
%timeit dx + dy # diff-indexes