Closed MBoldyrev closed 5 years ago
This change makes most block manipulation functions of storage take const blocks by shared pointer.
Blocks can be reused - no need to copy.
Negligible additional cost of shared pointers creation compared to just references.
Description of the Change
This change makes most block manipulation functions of storage take const blocks by shared pointer.
Benefits
Blocks can be reused - no need to copy.
Possible Drawbacks
Negligible additional cost of shared pointers creation compared to just references.
Usage Examples or Tests [optional]
Alternate Designs [optional]