obspy/obspy — pull request #424 by mbyt (2012-10-12 18:26:59+00:00)
Title: Speedup bbfk sinetable

# Speedup Array Analysis

The array analysis in obspy, done via the sonic function which basically calls the bbfk.c C-file was quite slow. This pull request optimizes the C implementation to at least double speed. The bottle-neck was a sine and cosine function inside a 4 times nested for loop. The optimization is done by per-calculating a sine table once. For the following millions of calls, just a index of the table must be retrieved. Features:

* Speedup by factor of 2x, for large slowness maps even more 10x to 100x.
* Accuracy should stay the same due to long sine table.