]> Cypherpunks repositories - gostls13.git/commit
database/sql: improve standard deviation response time under high concurrency
authorJames Tucker <raggi@google.com>
Wed, 3 Apr 2013 18:13:40 +0000 (11:13 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 3 Apr 2013 18:13:40 +0000 (11:13 -0700)
commit4f1ef563cc7fa110937516be2fe847a48e700135
tree085b27e4c8945ca0396cd326d9c11055678b51f7
parentb6f798f35bb441b328ed53f32b865d0cbdf0ad91
database/sql: improve standard deviation response time under high concurrency

See https://github.com/raggi/go-and-java for runtime benchmark.

The patch reduces the amount of map key search, moving connection oriented
variables onto the connection structs.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/8092045
src/pkg/database/sql/sql.go
src/pkg/database/sql/sql_test.go