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:
[email protected]


With regards,
Apache Git Services

Reply via email to