rocksdb/utilities/document
Maysam Yabandeh 11526252cc Pinnableslice (2nd attempt)
Summary:
PinnableSlice

    Summary:
    Currently the point lookup values are copied to a string provided by the
    user. This incures an extra memcpy cost. This patch allows doing point lookup
    via a PinnableSlice which pins the source memory location (instead of
    copying their content) and releases them after the content is consumed
    by the user. The old API of Get(string) is translated to the new API
    underneath.

    Here is the summary for improvements:

    value 100 byte: 1.8% regular, 1.2% merge values
    value 1k byte: 11.5% regular, 7.5% merge values
    value 10k byte: 26% regular, 29.9% merge values
    The improvement for merge could be more if we extend this approach to
    pin the merge output and delay the full merge operation until the user
    actually needs it. We have put that for future work.

    PS:
    Sometimes we observe a small decrease in performance when switching from
    t5452014 to this patch but with the old Get(string) API. The d
Closes https://github.com/facebook/rocksdb/pull/1756

Differential Revision: D4391738

Pulled By: maysamyabandeh

fbshipit-source-id: 6f3edd3
2017-03-13 11:54:10 -07:00
..
document_db_test.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
document_db.cc Pinnableslice (2nd attempt) 2017-03-13 11:54:10 -07:00
json_document_builder.cc Updated all copyright headers to the new format. 2016-02-09 15:12:00 -08:00
json_document_test.cc Alpine Linux Build (#990) 2016-04-22 16:49:12 -07:00
json_document.cc Gcc 7 fallthrough 2016-12-14 19:24:25 -08:00