summaryrefslogtreecommitdiff
path: root/test/test_propagation.py
diff options
context:
space:
mode:
authorStan Seibert <stan@mtrr.org>2011-10-07 16:59:35 -0400
committerStan Seibert <stan@mtrr.org>2011-10-07 16:59:35 -0400
commitb97a56f5f81a806d05d9c55146acad73af2a57bc (patch)
tree92f1a62e7730cb0b72408fe9c17aff03ae94ab4b /test/test_propagation.py
parentc13c687cc1c3fed4484be2a19fc045cee7b3d310 (diff)
downloadchroma-b97a56f5f81a806d05d9c55146acad73af2a57bc.tar.gz
chroma-b97a56f5f81a806d05d9c55146acad73af2a57bc.tar.bz2
chroma-b97a56f5f81a806d05d9c55146acad73af2a57bc.zip
Rewrite mesh_grid to be less compact but 100x faster.
Most of the time required to build the LBNE geometry is spent on mesh_grid() for the highly segmented cylinder. (67 seconds!) The speed hit is caused by the use of zip to connect the vertices. The same task can be done in several lines with slice notation, and goes much faster.
Diffstat (limited to 'test/test_propagation.py')
0 files changed, 0 insertions, 0 deletions