Skip to content

Reduce store gathering pressures - speeds thresholds by up to 20%#15048

Merged
alalek merged 2 commits intoopencv:3.4from
ChipKerchner:reduceStoreGatheringThreshold
Jul 16, 2019
Merged

Reduce store gathering pressures - speeds thresholds by up to 20%#15048
alalek merged 2 commits intoopencv:3.4from
ChipKerchner:reduceStoreGatheringThreshold

Conversation

@ChipKerchner
Copy link
Copy Markdown
Contributor

Reduce store gathering pressures - speeds thresholds by up to 20%.

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.

Well done!

Please take a look on comments below.

const int N = 256;
int i, j, h[N] = {0};
#if CV_ENABLE_UNROLLED
int h2[3][N] = {0};
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you please change name for this to h_unrolled?

int h_unrolled[3][N] = {};

(= {} initialization should make MacOSX builder happy)

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.

Thank you for contribution!

@alalek alalek merged commit c9fcc12 into opencv:3.4 Jul 16, 2019
@ChipKerchner
Copy link
Copy Markdown
Contributor Author

How or when does code like this get put into master?

@alalek
Copy link
Copy Markdown
Member

alalek commented Jul 16, 2019

We have regular merges from 3.4 into master (weekly/bi-weekly).

@alalek alalek mentioned this pull request Jul 18, 2019
dvd42 pushed a commit to dvd42/opencv that referenced this pull request Aug 6, 2019
…gThreshold

* Reduce store gathering pressures - speeds thresholds by up to 20%

* Rename temporary histogram array and initialize so that MACOSX builder is happy
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.

2 participants