-
-
Notifications
You must be signed in to change notification settings - Fork 653
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
Low CPU utilization during image hash comparison #679
Comments
For now the main bottleneck is that algorithm works only on one thread Code - czkawka/czkawka_core/src/similar_images.rs Lines 718 to 836 in c88d347
Adding multithreading to it is not so easy, because finding objects is related to list of excluded items, that was modified in previous iterations, so simple and fast solutions of dividing tasks to 4,8 or 16 parts are not available here. But even with support of multiple threads, it would be still quite slow because with big number of hashes, each hash needs to be compared with every else multiple times. |
Hi, was just wondering why is the CPU utilization low during image hash comparison phase of the scan? Every other phase has some obvious bottleneck (disk/cpu at max), but this one confuses me. How is the comparison implemented? Great work btw!
The text was updated successfully, but these errors were encountered: