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

ConcurrentHashMaps #14

Closed
Speiger opened this issue Apr 11, 2022 · 0 comments
Closed

ConcurrentHashMaps #14

Speiger opened this issue Apr 11, 2022 · 0 comments
Projects

Comments

@Speiger
Copy link
Owner

Speiger commented Apr 11, 2022

Since i am right now working on that it should maybe its own card.

Some details for anyone interested.
I am not using Javas implementation of ConcurrentMaps due to the nature of the implementation.
I use Guavas approach instead.

The approach is not as good as Javas because in Javas case you can have as many threads as you want access the Map and only if the same node is tried to be accessed is there a synchronization happening, while guavas approach is a pool system where the amount of concurrency you define creates that amount of pools and each pool can only be accessed by 1 thread at a time.
This can/will lead up to a bit more synchronization but if you only work with a couple threads which is very likely you barely will feel that especially if your concurrency level is high enough.

@Speiger Speiger added this to ToDo in 0.6.0 via automation Apr 11, 2022
@Speiger Speiger moved this from ToDo to In Progress in 0.6.0 Apr 11, 2022
@Speiger Speiger moved this from In Progress to Done in 0.6.0 Apr 12, 2022
@Speiger Speiger closed this as completed Apr 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
0.6.0
Done
Development

No branches or pull requests

1 participant