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

osd: use optimized is_zero in object_stat_sum_t.is_zero() #7203

Merged
merged 2 commits into from Jan 18, 2016

Commits on Jan 12, 2016

  1. osd/osd_types.h: use optimized is_zero in object_stat_sum_t.is_zero()

    We already have a fast implementation of is_zero(memory), we should use
    it instead of using memcmp with temp struct on stack. This change reduces
    object_stat_sum_t.is_zero() CPU usage by 35-50%.
    
    Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
    Piotr Dałek committed Jan 12, 2016
    Copy the full SHA
    6537eda View commit details
    Browse the repository at this point in the history
  2. common: remove unused buf_is_zero

    Rmvoe unused function buf_is_zero, if someone misses it, a faster one is
    available in include/inline_memory.h.
    
    Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
    Piotr Dałek committed Jan 12, 2016
    Copy the full SHA
    329106b View commit details
    Browse the repository at this point in the history