Skip to content

Conversation

kleisauke
Copy link
Member

Turn the exit flag back into a proper count.

Fixes a regression introduced in commit 27229aa.

Context: #4276.

Turn the exit flag back into a proper count.

Fixes a regression introduced in commit 27229aa.
@jcupitt jcupitt merged commit c9d16c8 into libvips:8.16 Nov 30, 2024
6 checks passed
@jcupitt
Copy link
Member

jcupitt commented Nov 30, 2024

Ah, nice! I remember I did wonder about the flag (counts are usually much safer), but I couldn't think of a reason it wouldn't work. Threading is hard :(

@kleisauke kleisauke deleted the issue-4276 branch November 30, 2024 16:28
@kleisauke
Copy link
Member Author

It seems the previous implementation was ~14% faster on the NetVips benchmarks. For example, the ~11ms performance gain shown in this diff appears only with libvips v8.16.0.

Though, I ran these benchmarks on Windows, I haven't (yet) checked if the results are the same on Linux.

@kleisauke
Copy link
Member Author

Ah, I forgot to reduce the concurrency in that benchmark, it's much faster with VIPS_CONCURRENCY=4, see e.g. commit kleisauke/net-vips@d5e01c6.

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