DEV Community

Discussion on: Concurrency in Golang with a Binary Search Problem

Collapse
 
sebalopez profile image
Sebastian Lopez

Nice example, but bear in mind that concurrency can have a negative impact on complexity and performance because of synchronization, resource allocation, etc. Always benchmark your code :) In my tests, the solution without concurrency runs 5x~12x faster depending on the input size.