]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd_types.cc: replace count with iterator in add_next_event function
authorNathan Cutler <ncutler@suse.com>
Sat, 13 Jun 2015 19:33:25 +0000 (21:33 +0200)
committerNathan Cutler <ncutler@suse.com>
Sun, 14 Jun 2015 06:05:52 +0000 (08:05 +0200)
commit01b2e1fdb720cbc4af9338184c4c18d294a70eff
tree3082ab0162e41611bfbb49dcf41c974da2cead54
parente7c91c729e729f608b78597e840918ebb15940d0
osd_types.cc: replace count with iterator in add_next_event function

Performance optimization: count() and then operator[] duplicates the rbtree
lookup.

http://tracker.ceph.com/issues/432 Refs: #432

Signed-off-by: Nathan Cutler <ncutler@suse.com>
src/osd/osd_types.cc