yoyololicon / kamui

MIT License
16 stars 4 forks source link

replaced `max` and `min` operations for puma function (improves speed) #5

Closed ChangPaul closed 4 months ago

ChangPaul commented 4 months ago

Hey @yoyololicon

Tests on the wrapped shear (from examples/synthetic_images.ipynb) was previously 1.1119 seconds (average of 50 repetitions) and after the modification was 0.5431 seconds (also average of 50 repetitions). Therefore approximately 2x faster.

Tests on a 3d wrapped shear (shear = np.repeat(shear[..., None], 20, axis=2)) was previously 51.1 seconds runtime (for one measurement) and after the modification was 34.4 seconds runtime (for one measurement).

yoyololicon commented 4 months ago

The improvements will be available in version 0.1.2. Thank you @ChangPaul