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

Improve performance of src_analyse_IRSARRF_SRS() with optimization at -O2 #399

Merged
merged 2 commits into from
Nov 8, 2024

Conversation

mcol
Copy link
Contributor

@mcol mcol commented Nov 8, 2024

These changes improve the running time of our example when using -O2, which is the default compilation flag on CRAN. This is a mild regression for the -O3 flag, but given that hardly anybody will use that, the compromise seems worth it. Part of #372.

Single core performance using 3 slide windows:

  • with -O2 time goes from 13.5s to 10.7s
  • with -03 time goes from 10.1s to 10.7s

Single core performance using 10 slide windows:

  • with -O2 time goes from 40.9s to 32.6s
  • with -03 time goes from 29.1s to 32.5s

… -O2.

These changes improve the running time of our example when using -O2, which
is the default compilation flag on CRAN. This is a mild regression for the
-O3 flag, but given that hardly anybody will use that, the compromise seems
worth it.

Single core performance using 3 slide windows:
 - with -O2 time goes from 13.5s to 10.7s
 - with -03 time goes from 10.1s to 10.7s

Single core performance using 10 slide windows:
 - with -O2 time goes from 40.9s to 32.6s
 - with -03 time goes from 29.1s to 32.5s
@RLumSK
Copy link
Member

RLumSK commented Nov 8, 2024

Thanks @mcol, great work!

@mcol mcol merged commit 32d7127 into master Nov 8, 2024
9 checks passed
@mcol mcol deleted the issue_372_p4 branch November 8, 2024 13:37
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