scylladb / gocql

Package gocql implements a fast and robust ScyllaDB client for the Go programming language.
https://docs.scylladb.com/stable/using-scylla/drivers/cql-drivers/scylla-go-driver.html
BSD 3-Clause "New" or "Revised" License
169 stars 47 forks source link

Remove locks for tablets flag on Conn #196

Closed dkropachev closed 2 weeks ago

dkropachev commented 3 weeks ago

Removes unnecessary Conn.mu locking on accessing tabletsRoutingV1 flag. Conn.mu is overused, less it is used less contention is yielded along with more performance.

roydahan commented 3 weeks ago

@dkropachev can you please add the description also to the commit message?

dkropachev commented 3 weeks ago

@dkropachev can you please add the description also to the commit message?

Done

sylwiaszunejko commented 2 weeks ago

pls rebase on master

dkropachev commented 2 weeks ago

pls rebase on master

done