]> Cypherpunks repositories - gostls13.git/commit
os: cache Getwd result as hint for next time
authorRuss Cox <rsc@golang.org>
Thu, 14 Feb 2013 19:21:09 +0000 (14:21 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 14 Feb 2013 19:21:09 +0000 (14:21 -0500)
commit89fde30fbda9a86a7b53db7b7cee1cfd8e1a36ff
tree4ca3d9dcf6941796c7fde363f844d5564cd4af2d
parent158a0353f76d2c6bc282fe5fb67f584e6c8de0bd
os: cache Getwd result as hint for next time

Avoids the dot-dot-based algorithm on repeated calls
when the directory hasn't changed.

R=golang-dev, iant, bradfitz
CC=golang-dev
https://golang.org/cl/7340043
src/pkg/os/getwd.go