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

Sleep for 1 ms while waiting to yield CPU #241

Merged
merged 1 commit into from
Sep 29, 2023

Conversation

mal-risma
Copy link
Contributor

Description

When waiting for tesseract the CPU of the PHP process runs at 100% on a single core. This change introduces a 1ms sleep to yield the cpu for other processes.

Copy link
Owner

@thiagoalessio thiagoalessio left a comment

Choose a reason for hiding this comment

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

/lgtm

@thiagoalessio thiagoalessio merged commit 745c880 into thiagoalessio:main Sep 29, 2023
32 of 44 checks passed
@thiagoalessio
Copy link
Owner

Thank you so much for taking the time to contribute back to this library ❤️

@mal-risma
Copy link
Contributor Author

My pleasure. Thank you merging it so fast!

@mal-risma
Copy link
Contributor Author

Any change you could give it a version number, so it gets updated on packagist?

@thiagoalessio
Copy link
Owner

sure, there you go: https://packagist.org/packages/thiagoalessio/tesseract_ocr#2.13.0

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