We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbaa6e3 commit bdd98e8Copy full SHA for bdd98e8
src/script/script.h
@@ -363,6 +363,12 @@ class CScriptNum
363
int64_t m_value;
364
};
365
366
+/**
367
+ * We use a prevector for the script to reduce the considerable memory overhead
368
+ * of vectors in cases where they normally contain a small number of small elements.
369
+ * Tests in October 2015 (bitcoin) showed use of this reduced dbcache memory usage by 23%
370
+ * and made an initial sync 13% faster.
371
+ */
372
typedef prevector<28, unsigned char> CScriptBase;
373
374
/** Serialized script, used inside transaction inputs and outputs */
0 commit comments