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

CSSTUDIO-2051 Replace SynchronousQueue with LinkedBlockingDeque in NamedDaemonPool #3021

Closed
wants to merge 1 commit into from

Conversation

abrahamwolk
Copy link
Collaborator

This PR replaces the data-structure SynchronousQueue with the data-structure LinkedBlockingDeque when calling new ThreadPoolExecutor(...) in the class NamedDaemonPool.

The motivation for this change is an observed performance increase: based purely on empirical testing, loading an OPI with on the order of 50 symbol widgets each with on the order of 10 different SVG files, the performance is dramatically improved when a LinkedBlockingDeque is used instead of a SynchronousQueue. I have observed a performance increase both on Windows and on Linux. I have not tested the change on Mac OS.

@abrahamwolk
Copy link
Collaborator Author

Closed this PR since the issue seems to be located elsewhere, as discovered by @georgweiss. I will attempt to implement a fix of the underlying issue and create a PR.

@abrahamwolk abrahamwolk deleted the CSSTUDIO-2051 branch May 21, 2024 11:25
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.

1 participant