-
-
Notifications
You must be signed in to change notification settings - Fork 479
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
The function 'slice.IndexOf' is not thread-safe #262
Comments
The methods of slice package are not goroutines safe and requires a lock to ensure goroutines safety. |
Can we change memoryHashMap and memoryHashCounter to sync.map to support concurrency ? Looking forward to your reply. |
Okay, you can submit a PR to change it. |
I think we should evaluate the performance overhead of sync.Map and map + RWLock in here. |
@cannian1 make sense, we should evaluate the performance here. |
fixed in v2.3.4 |
I get this information when I execute this function on different coroutines.
The text was updated successfully, but these errors were encountered: