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

os/bluestore: speed up omap-key generation for same onode #11807

Merged
merged 1 commit into from Nov 8, 2016

Conversation

xiexingguo
Copy link
Member

This is useful if we have to batch-process omap kvs.

Signed-off-by: xie xingguo xie.xingguo@zte.com.cn

@liewegas
Copy link
Member

liewegas commented Nov 7, 2016

We can probably do even better by reusing the same string (at prefix scope) and truncating it to 8+1 each pass through the loop. That avoids the memory copy and (likely) an allocation.

This is useful if we have to batch-process omap kvs.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
@xiexingguo
Copy link
Member Author

@liewegas Fixed.

@liewegas liewegas merged commit 4bc6bad into ceph:master Nov 8, 2016
@xiexingguo xiexingguo deleted the xxg-wip-bs-1107 branch November 8, 2016 02:46
xiexingguo added a commit to xiexingguo/ceph that referenced this pull request Nov 10, 2016
…ths)

In ceph#11807 we only modify the write paths,
this patch fixes the read parts too, which are more time-sensitive.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants