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

[Java] Optimize the copy performance of some thread-safe classes #1776

Open
zhaommmmomo opened this issue Jul 29, 2024 · 1 comment
Open
Labels
enhancement New feature or request

Comments

@zhaommmmomo
Copy link
Contributor

Is your feature request related to a problem? Please describe.

Some thread-safe classes use a generic copyElements() method, for example: CopyOnWriteArrayList...
when adding elements, locking operations are performed, which is very time-consuming.

Describe the solution you'd like

Optimize the performance of these copy classes

Additional context

image
image

@zhaommmmomo zhaommmmomo added the enhancement New feature or request label Jul 29, 2024
@zhaommmmomo
Copy link
Contributor Author

I will deal with it. If there is anything to add, please let me know. @chaokunyang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant