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

fast denc encoding #11027

Merged
merged 31 commits into from Oct 18, 2016
Merged

fast denc encoding #11027

merged 31 commits into from Oct 18, 2016

Conversation

liewegas
Copy link
Member

@liewegas liewegas commented Sep 8, 2016

No description provided.

return iterator(this, false);
}
iterator begin_deep() {
return iterator(this, false);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/false/true/

// itype == internal type
// otype == external type, i.e., the type on the wire

// NOTE: set supported == 2 instead of true. This prevents these from
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be useful to have a place in the comments where the values of the supported, featured, bounded, etc. are explicitly documented in a table.

Also the definition of "featured object" isn't immediately clear (and quite misleading). One line of comment where the term is first introduced would be hugely helpful.

@somnathr
Copy link

@liewegas With first 4 commits (sharedblob::put() one causing crash) , memory leaks are resolved in my setup.

@liewegas liewegas force-pushed the wip-denc branch 6 times, most recently from 37f9cd8 to d9dab11 Compare September 19, 2016 00:12
@athanatos
Copy link
Contributor

This looks about right to me.

@liewegas liewegas force-pushed the wip-denc branch 2 times, most recently from 14b176b to b9c4380 Compare September 22, 2016 20:15
@liewegas liewegas changed the title RFC: fast denc encoding fast denc encoding Sep 26, 2016
…n terms of varint

Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
#include it from encoding.h so that we can make old STL container helpers
conditional on a new-style helper not being available.

Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
The bufferlist one is for internal use only.

Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
The BlueRocksEnv uses the append(const char *, size_t) appender.  Ensure
that this data is copied into a page-aligned buffer, and that we "pad" the
write out with the remainder of the page.

Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Do the copy up-front.  This is useful if we know our target buffer must
be a contiguous buffer (e.g., because it will be passed to a kv store).

Signed-off-by: Sage Weil <sage@redhat.com>
Avoid an inevitable rebuild() since we have to pass this to rocksdb as a
single memory buffer anyway.

Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
Back in 46522cf we broke the newline
placement for the * lines.

Signed-off-by: Sage Weil <sage@redhat.com>
Signed-off-by: Sage Weil <sage@redhat.com>
@liewegas liewegas merged commit 29119aa into ceph:master Oct 18, 2016
@liewegas liewegas deleted the wip-denc branch October 18, 2016 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
7 participants