]> Cypherpunks repositories - gostls13.git/commit
syscall: lazily populate the environment cache on Plan 9
authorAnthony Martin <ality@pbrane.org>
Mon, 17 Dec 2012 16:33:51 +0000 (08:33 -0800)
committerAnthony Martin <ality@pbrane.org>
Mon, 17 Dec 2012 16:33:51 +0000 (08:33 -0800)
commit2ad67147936bb1bf1f95d2a2ae41deab236712e9
tree2dfca5c8955773ae77e183d66f772f294485ba63
parent1b18a6072e3af427b92e26e7f472fd6d0c6efc09
syscall: lazily populate the environment cache on Plan 9

This decreases the amount of system calls during the
first call to Getenv. Calling Environ will still read
in all environment variables and populate the cache.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6939048
src/pkg/syscall/env_plan9.go