Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

ChangPaul
Copy link
Contributor

No description provided.

Copy link
Owner

@yoyololicon yoyololicon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @ChangPaul , thanks for the contribution!

Could you provide some benchmarks for your improvements over the previous version? such as runtime.

kamui/core.py Show resolved Hide resolved
@ChangPaul
Copy link
Contributor Author

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).

Copy link
Owner

@yoyololicon yoyololicon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for reporting the numbers! Great contribution.

@yoyololicon yoyololicon changed the base branch from main to dev April 4, 2024 15:55
@yoyololicon yoyololicon merged commit 1119bbc into yoyololicon:dev Apr 4, 2024
1 check passed
@yoyololicon
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants