Skip to content

common: compute SimpleLRU's size with contents.size() instead of lru.size() - #19813

Merged
tchaikov merged 1 commit into
ceph:masterfrom
xxhdx1985126:wip_xxh_low_list_size
Jan 10, 2018
Merged

tchaikov merged 1 commit into
ceph:masterfrom
xxhdx1985126:wip_xxh_low_list_size

Conversation

@xxhdx1985126

@xxhdx1985126 xxhdx1985126 commented Jan 6, 2018 •

Copy link
Copy Markdown
Member

As libstdc++ earlier than version 5 implement the list::size() as a O(n) operation,
this should be needed to avoid regression of various ceph component's performance.

Signed-off-by: Xuehan Xu [email protected]

http://tracker.ceph.com/issues/22613

…size()

As libstdc++ earlier than version 5 implement the list::size() as a O(n) operation,
this should be needed to avoid regression of various ceph component's performance.

Signed-off-by: Xuehan Xu <[email protected]>
@tchaikov
tchaikov merged commit f51f0c1 into ceph:master Jan 10, 2018
@xxhdx1985126
xxhdx1985126 deleted the wip_xxh_low_list_size branch January 26, 2018 23:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants