diff options
author | William Casarin <jb55@jb55.com> | 2020-05-01 17:31:38 -0700 |
---|---|---|
committer | William Casarin <jb55@jb55.com> | 2020-05-15 15:26:54 -0700 |
commit | 83a425d25af033086744c1c8c892015014ed46bd (patch) | |
tree | 1fd1094b3c5c37aa900b49b496e0d1c40468b7b6 /depends/packages/native_mac_alias.mk | |
parent | 844d2070a2c0106bb7a54be5cad7d4da4d9cd55e (diff) |
compressor: use a prevector in compressed script serialization
Use a prevector for stack allocation instead of heap allocation during
script compression and decompression. These functions were doing
millions of unnecessary heap allocations during IBD.
We introduce a CompressedScript type alias for this prevector. It is
size 33 as that is the maximum size of a compressed script.
Fix the DecompressScript header to match the variable name from
compressor.cpp
Signed-off-by: William Casarin <jb55@jb55.com>
Diffstat (limited to 'depends/packages/native_mac_alias.mk')
0 files changed, 0 insertions, 0 deletions