diff options
| author | 2019-01-24 13:14:39 -0800 | |
|---|---|---|
| committer | 2019-01-24 21:35:16 +0000 | |
| commit | 7b3dcc31ebf31382458e69356a120cf95fc0b791 (patch) | |
| tree | c1582567586682244815053b37f485798cfba23e /java/java_test.go | |
| parent | 590b1ae37cb8db754b3fc1d139b6490c4ca5752f (diff) | |
Avoid filepath.Abs
filepath.Abs is surprisingly expensive, it calls os.Getwd every
time, which involves multiple syscalls, a lock, and and allocations.
Use IsAbs and prefix matching instead.
Test: paths_test.go
Change-Id: Ia6cf34d6bef24c694702af1e7a6ff08ffd2d822b
Diffstat (limited to 'java/java_test.go')
0 files changed, 0 insertions, 0 deletions