Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

並列化の吟味 #2

Open
Mr-Ojii opened this issue Jan 31, 2025 · 0 comments
Open

並列化の吟味 #2

Mr-Ojii opened this issue Jan 31, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@Mr-Ojii
Copy link
Owner

Mr-Ojii commented Jan 31, 2025

現状で4重ループで一番重いここの並列化を行う

x, y, w にしか依存しない index の pix_info に読み書きをするだけなので並列化は容易に可能。

だが、ymax - ymin がある閾値以上でない (閾値は環境に拠る可能性が高い) 場合、並列化時のスレッド立てるオーバーヘッドのほうが大きくなるため、遅くなる可能性が高い。
ymax - ymin >= スレッド数 で判別するのが適切?

@Mr-Ojii Mr-Ojii added the enhancement New feature or request label Jan 31, 2025
@Mr-Ojii Mr-Ojii self-assigned this Jan 31, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant