diff options
| author | Alex Elder <[email protected]> | 2013-05-01 12:43:03 -0500 |
|---|---|---|
| committer | Alex Elder <[email protected]> | 2013-05-02 11:58:17 -0500 |
| commit | 30d1cff817808fca9801c743d2de4c61f3f38e15 (patch) | |
| tree | b6944042ba2919676bd13ebf84c412b04854f00e /lib/mpi/mpiutil.c | |
| 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 <[email protected]>
Reviewed-by: Josh Durgin <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions