Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Add StorageValue::append and speed-up deposit_event #2282

Merged
merged 6 commits into from Apr 16, 2019

Conversation

bkchr
Copy link
Member

@bkchr bkchr commented Apr 15, 2019

StorageValue::append can be used by types that implement EncodeAppend to speed-up situations where you just want to append an item to storage without wanting to decode all previous items.

I have created a benchmark:

  • before: 4.8580 ms
  • after: 73.761 us

Fixes: #2223

`StorageValue::append` can be used by types that implement `EncodeAppend` to speed-up situations where you just want to append
an item to storage without wanting to decode all previous items.
@bkchr bkchr added the A0-please_review Pull request needs code review. label Apr 15, 2019
@gavofyork
Copy link
Member

@bkchr doesn't build?

@gavofyork gavofyork added A7-looksgoodtestsfail and removed A0-please_review Pull request needs code review. A4-gotissues labels Apr 16, 2019
@bkchr bkchr merged commit 89f951f into master Apr 16, 2019
@bkchr bkchr deleted the bkchr-deposit_event-performance branch April 16, 2019 11:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

deposit_event performance is poor when log lots of event
3 participants