diff options
author | DarcySail <darcysail@gmail.com> | 2019-10-23 14:26:23 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2019-10-23 14:27:53 -0700 |
commit | fbe6b50d5628bc3d522f87eee2abcc5a923df420 (patch) | |
tree | aa239f2e060a8f29efd7805938f90771f9c9609c /test/syscalls/linux/sticky.cc | |
parent | de3dbf8a09afdccba75d7ca3c129ce33c569c086 (diff) |
Keep minimal available fd to accelerate fd allocation
Use fd.next to store the iteration start position, which can be used to accelerate allocating new FDs.
And adding the corresponding gtest benchmark to measure performance.
@tanjianfeng
COPYBARA_INTEGRATE_REVIEW=https://github.com/google/gvisor/pull/758 from DarcySail:master 96685ec7886dfe1a64988406831d3bc002b438cc
PiperOrigin-RevId: 276351250
Diffstat (limited to 'test/syscalls/linux/sticky.cc')
0 files changed, 0 insertions, 0 deletions