-
Notifications
You must be signed in to change notification settings - Fork 593
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
1.9 Concurrent Maps #38
Comments
Looks interesting. We give it a shot and try to replace current maps and locks with concurrent map. Still we need to synchronize writes to array but reads could be faster. |
Yeah, I think reads could be faster, but I think the writes will be about the same, maybe ±5% since the current implementation is so highly optimized. My thoughts on this would be to try replace the base If it's close in performance (±10%), it might also be useful as a secondary API instead. Something like My time for the next month is fairly limited since I'm moving, and 1.9 doesn't debut until August. I'll try and fiddle with it over the next month and see what I can come up with. |
#49 makes possible to do this task pretty easy. Just copy implementation of |
Perfect. I will work on it in the next week or so. |
Okay, this is actually going to be a big change as concurrent maps do not support indexing. So this will take awhile. |
Was looking at tip for 1.9, there is a new feature called Concurrent Maps, wanted to start a discussion around adding support for concurrent cache ops.
Not sure on the performance of it, but the design seems fairly solid. Looks like it uses a lot of
unsafe.Pointer
types andatomic
ops, so it might be fairly fast.The text was updated successfully, but these errors were encountered: