• Dmitriy Vyukov's avatar
    runtime: faster chan creation on Linux/FreeBSD/Plan9 · d770aade
    Dmitriy Vyukov authored
    The change removes chan finalizer (Lock destructor)
    if it is not required on the platform.
    
    benchmark                    old ns/op    new ns/op    delta
    BenchmarkChanCreation          1132.00       381.00  -66.34%
    BenchmarkChanCreation-2        1215.00       243.00  -80.00%
    BenchmarkChanCreation-4        1084.00       186.00  -82.84%
    BenchmarkChanCreation-8        1415.00       154.00  -89.12%
    BenchmarkChanCreation-16       1386.00       144.00  -89.61%
    (on 2 x Intel Xeon E5620, 8 HT cores, 2.4 GHz, Linux)
    
    R=golang-dev, rsc
    CC=golang-dev
    https://golang.org/cl/4841041
    d770aade
Name
Last commit
Last update
..
cmd Loading commit data...
lib9 Loading commit data...
libbio Loading commit data...
libmach Loading commit data...
pkg Loading commit data...
Make.ccmd Loading commit data...
Make.clib Loading commit data...
Make.cmd Loading commit data...
Make.common Loading commit data...
Make.inc Loading commit data...
Make.pkg Loading commit data...
all-qemu.bash Loading commit data...
all.bash Loading commit data...
clean.bash Loading commit data...
env.bash Loading commit data...
make.bash Loading commit data...
quietgcc.bash Loading commit data...
run.bash Loading commit data...
sudo.bash Loading commit data...
version.bash Loading commit data...