You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by gi...@git.apache.org on 2017/09/19 15:00:42 UTC
[GitHub] nickva opened a new issue #829: Avoid uncompressing document bodies just to get the size
nickva opened a new issue #829: Avoid uncompressing document bodies just to get the size
URL: https://github.com/apache/couchdb/issues/829
Noticed during compaction we decompress document bodies to get their size.
https://github.com/apache/couchdb/blob/master/src/couch/src/couch_db_updater.erl#L1084
But it seems we don't have to, as uncompressed size is part of the compression binary format:
http://erlang.org/doc/apps/erts/erl_ext_dist.html
Snappy also has a method to get uncompressed sizes:
https://github.com/apache/couchdb-snappy/blob/master/src/snappy.erl#L51
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services