summaryrefslogtreecommitdiffhomepage
path: root/pkg/waiter/waiter_test.go
diff options
context:
space:
mode:
authorMichael Pratt <mpratt@google.com>2019-04-04 17:13:31 -0700
committerShentubot <shentubot@google.com>2019-04-04 17:14:27 -0700
commit75a5ccf5d98876c26305da0feff20e4a148027ec (patch)
treedf7ae64d05c7537108d3d8c278a61da8f394da41 /pkg/waiter/waiter_test.go
parent75c8ac38e0f6cc4eb3726c89aee41357cd592c4b (diff)
Remove defer from trivial ThreadID methods
In particular, ns.IDOfTask and tg.ID are used for gettid and getpid, respectively, where removing defer saves ~100ns. This may be a small improvement to application logging, which may call gettid/getpid frequently. PiperOrigin-RevId: 242039616 Change-Id: I860beb62db3fe077519835e6bafa7c74cba6ca80
Diffstat (limited to 'pkg/waiter/waiter_test.go')
0 files changed, 0 insertions, 0 deletions