diff options
author | Alex Elder <elder@inktank.com> | 2013-05-01 12:43:03 -0500 |
---|---|---|
committer | Alex Elder <elder@inktank.com> | 2013-05-02 11:58:17 -0500 |
commit | 30d1cff817808fca9801c743d2de4c61f3f38e15 (patch) | |
tree | b6944042ba2919676bd13ebf84c412b04854f00e /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
parent | 15228ede7d9437b0dcfe9331c9830b3646fdadf7 (diff) |
rbd: use binary search for snapshot lookup
Use bsearch(3) to make snapshot lookup by id more efficient. (There
could be thousands of snapshots, and conceivably many more.)
Signed-off-by: Alex Elder <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions