diff options
| author | Pieter Wuille <[email protected]> | 2016-10-28 19:12:39 -0700 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-11-07 13:56:27 -0800 |
| commit | d59a518466f6b9012666a3f9392ec12fff8830b5 (patch) | |
| tree | d851ca45a75edab810626eed6708d11107a24dea /src/net_processing.cpp | |
| parent | Add optimized CSizeComputer serializers (diff) | |
| download | discoin-d59a518466f6b9012666a3f9392ec12fff8830b5.tar.xz discoin-d59a518466f6b9012666a3f9392ec12fff8830b5.zip | |
Use fixed preallocation instead of costly GetSerializeSize
Dbwrapper used GetSerializeSize() to compute the size of the buffer
to preallocate. For some cases (specifically: CCoins) this requires
a costly compression call. Avoid this by just using fixed size
preallocations instead.
Diffstat (limited to 'src/net_processing.cpp')
0 files changed, 0 insertions, 0 deletions