Actions
Task #4159
closedOptimize Block::encode() implementation
Start date:
Due date:
% Done:
100%
Estimated time:
3.00 h
Description
Currently, Block::encode() uses BlockStream API to create wire encoding of an unknown size. As a result, it is not quite as optimal (time-wise), as may require multiple memory (re-)allocations. The optimized version should use Encoding and Estimating encoder APIs.
There is one complication though. The optimized version would need to support recursive encoding of sub-blocks, which may complicate things a bit.
Actions