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

Use DashMap instead of RwLock'd HashMap #173

Open
banool opened this issue Jul 16, 2020 · 1 comment
Open

Use DashMap instead of RwLock'd HashMap #173

banool opened this issue Jul 16, 2020 · 1 comment
Labels
server Issues related to the server

Comments

@banool
Copy link
Owner

banool commented Jul 16, 2020

https://crates.io/crates/dashmap

@banool banool added the server Issues related to the server label Jul 16, 2020
@banool
Copy link
Owner Author

banool commented Jul 17, 2020

Some things we might be able to do, since we don't actually have a RwLock'd HashMap directly right now:

  • Get rid of GameManagerWrapper
    • Instead, make games a DashMap.
  • Wrap game inside GameWrapper in a RwLock instead of the whole GameWrapper

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
server Issues related to the server
Projects
None yet
Development

No branches or pull requests

1 participant