Project

General

Profile

Actions

Task #4159

closed

Optimize Block::encode() implementation

Added by Alex Afanasyev over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Base
Target version:
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

Also available in: Atom PDF