Skip to content

Conversation

@chmjkb
Copy link
Contributor

@chmjkb chmjkb commented Dec 3, 2025

Description

We observed activity on all CPU cores despite manually configuring the thread pool. OpenCV's internal threading was activating all available cores, overriding our optimized thread configuration and resulting in worse performance.

Introduces a breaking change?

  • Yes
  • No

Type of change

  • Bug fix (change which fixes an issue)
  • New feature (change which adds functionality)
  • Documentation update (improves or adds clarity to existing documentation)
  • Other (chores, tests, code style improvements etc.)

Tested on

  • iOS
  • Android

Testing instructions

Screenshots

Related issues

Checklist

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly
  • My changes generate no new warnings

Additional notes

@chmjkb chmjkb requested a review from mkopcins December 3, 2025 09:17
@chmjkb chmjkb linked an issue Dec 3, 2025 that may be closed by this pull request
Copy link
Collaborator

@mkopcins mkopcins left a comment

Choose a reason for hiding this comment

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

LGTM

@chmjkb chmjkb merged commit 0da57dc into main Dec 3, 2025
4 checks passed
@chmjkb chmjkb deleted the @chmjkb/opencv-threading-fix branch December 3, 2025 11:17
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.

Fix OpenCV overwriting threading configuration

3 participants