diff options
| author | MarcoFalke <[email protected]> | 2017-08-16 01:28:35 +0200 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2017-08-16 01:29:09 +0200 |
| commit | 7db65c363a0cc6ca7cdb04de9a973ab70013baad (patch) | |
| tree | be97ced748fbfa4d89255469c16156c3042f82d3 /src | |
| parent | Merge #10680: Fix inconsistencies and grammar in various files (diff) | |
| parent | [Trivial] Add a comment on the use of prevector in script. (diff) | |
| download | discoin-7db65c363a0cc6ca7cdb04de9a973ab70013baad.tar.xz discoin-7db65c363a0cc6ca7cdb04de9a973ab70013baad.zip | |
Merge #11011: [Trivial] Add a comment on the use of prevector in script.
08f71c29e [Trivial] Add a comment on the use of prevector in script. (Gregory Maxwell)
Pull request description:
Tree-SHA512: 020981516e67e576685eb9a8532178fb97d1780af409fc86d869cd05c293c0c823c26e838cf544d18610f5a3f479ce3e47d2ccb95fb1c4e55fe9e7ceb354f20b
Diffstat (limited to 'src')
| -rw-r--r-- | src/script/script.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/script/script.h b/src/script/script.h index 711ffa97f..587f2d26e 100644 --- a/src/script/script.h +++ b/src/script/script.h @@ -377,6 +377,12 @@ private: int64_t m_value; }; +/** + * We use a prevector for the script to reduce the considerable memory overhead + * of vectors in cases where they normally contain a small number of small elements. + * Tests in October 2015 showed use of this reduced dbcache memory usage by 23% + * and made an initial sync 13% faster. + */ typedef prevector<28, unsigned char> CScriptBase; /** Serialized script, used inside transaction inputs and outputs */ |