Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from Jan 10, 2018

Conversation

xxhdx1985126
Copy link
Contributor

@xxhdx1985126 xxhdx1985126 commented Jan 6, 2018

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 xuxuehan@360.cn

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 <xuxuehan@360.cn>
@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
4 participants