Project

General

Profile

Actions

Task #4159

closed

Optimize Block::encode() implementation

Added by Alex Afanasyev almost 7 years ago. Updated over 6 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 #1

Updated by Davide Pesavento almost 7 years ago

  • Start date deleted (06/29/2017)
Actions #2

Updated by Junxiao Shi almost 7 years ago

  • Status changed from New to In Progress
  • Assignee set to Junxiao Shi
  • Estimated time set to 3.00 h
Actions #3

Updated by Junxiao Shi almost 7 years ago

  • Status changed from In Progress to Code review
  • % Done changed from 0 to 100
Actions #4

Updated by Junxiao Shi over 6 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF