I'm designing an app which will be listening to messages on many sockets. - One goroutine per socket. - Each goroutine will do some processing on the messages to a summary datastructure. Only. That goroutine will be the only one writing to that datastructure - There will be another goroutine that will read the summary data structures from above and take some action.
Performance is important so I want to copy as little data as possible and reduce the overhead of the GC. Is the preferred way of using a RW Mutex in each goroutine around writing and reading variables that will be accessed concurrently? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/c8387a91-cc92-451a-85f0-cd3d5b21842fn%40googlegroups.com.