Skip to content

Even faster CV_PAUSE on SkyLake and above.#22988

Merged
opencv-pushbot merged 1 commit intoopencv:3.4from
vrabaud:mm_pause_fix
Dec 19, 2022
Merged

Even faster CV_PAUSE on SkyLake and above.#22988
opencv-pushbot merged 1 commit intoopencv:3.4from
vrabaud:mm_pause_fix

Conversation

@vrabaud
Copy link
Copy Markdown
Contributor

@vrabaud vrabaud commented Dec 19, 2022

No need to loop as RDTSC is 3/4 times faster than _mm_pause.

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the original bug report and related work

No need to loop as RDTSC is 3/4 times faster than _mm_pause.
@vrabaud vrabaud requested a review from alalek December 19, 2022 13:23
@vrabaud vrabaud changed the base branch from 4.x to 3.4 December 19, 2022 13:31
Copy link
Copy Markdown
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@opencv-pushbot opencv-pushbot merged commit d44c58a into opencv:3.4 Dec 19, 2022
@vrabaud vrabaud deleted the mm_pause_fix branch December 19, 2022 17:09
@alalek alalek mentioned this pull request Dec 24, 2022
@alalek alalek mentioned this pull request Jan 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants