• Adam Langley's avatar
    Remove global chanlock. · d1740bb3
    Adam Langley authored
    On a microbenchmark that ping-pongs on lots of channels, this makes
    the multithreaded case about 20% faster and the uniprocessor case
    about 1% slower. (Due to cache effects, I expect.)
    
    R=rsc, agl
    CC=golang-dev
    https://golang.org/cl/166043
    d1740bb3
chan.c 17.8 KB