We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2507fd5 commit 08f71c2Copy full SHA for 08f71c2
src/script/script.h
@@ -377,6 +377,12 @@ class CScriptNum
377
int64_t m_value;
378
};
379
380
+/**
381
+ * We use a prevector for the script to reduce the considerable memory overhead
382
+ * of vectors in cases where they normally contain a small number of small elements.
383
+ * Tests in October 2015 showed use of this reduced dbcache memory usage by 23%
384
+ * and made an initial sync 13% faster.
385
+ */
386
typedef prevector<28, unsigned char> CScriptBase;
387
388
/** Serialized script, used inside transaction inputs and outputs */
0 commit comments