diff options
author | Gregory Maxwell <greg@xiph.org> | 2017-08-08 22:51:40 +0000 |
---|---|---|
committer | Gregory Maxwell <greg@xiph.org> | 2017-08-12 16:32:58 +0000 |
commit | 08f71c29ea586f41d0ec3ba77f2366c41e861354 (patch) | |
tree | bff4cc1000b30ab7577b69eba98fd9bf5c59967e /src/script/script.h | |
parent | 2507fd55568b361080e9127f40584af2df64f76e (diff) |
[Trivial] Add a comment on the use of prevector in script.
Diffstat (limited to 'src/script/script.h')
-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 d16bfd0e00..68b12c1435 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 */ |