This repository has been archived by the owner on Sep 4, 2019. It is now read-only.
forked from apache/couchdb
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
More efficient term size calculation
Unlike byte_size(term_to_binary(Term)), the BIF erlang:external_size/1 doesn't do the serialization step, it only calculates the maximum external size for any term, which is more efficient (faster and avoids the garbage generation). With the test couch_http_bulk_writes.sh at [1], using 20 writers and batches of 100 1Kb documents, it's possible to write about 1 400 000 documents with this patch instead of about 1 300 000. [1] https://github.com/fdmanana/basho_bench_couch git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1129597 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Showing
5 changed files
with
20 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters