Skip to content

StorageKey optimization#929

Merged
shargon merged 2 commits intoneo-project:masterfrom
shargon:storage-key-optimization
Jul 18, 2019
Merged

StorageKey optimization#929
shargon merged 2 commits intoneo-project:masterfrom
shargon:storage-key-optimization

Conversation

@shargon
Copy link
Copy Markdown
Member

@shargon shargon commented Jul 17, 2019

Also, i don't like the WriteBytesWithGrouping i understand the problem, but i think that we can (only on this class) read until the end of the stream, because always comes from a fixed buffer, so we don't need to write the length prefix.

@codecov-io
Copy link
Copy Markdown

codecov-io commented Jul 17, 2019

Codecov Report

Merging #929 into master will increase coverage by 0.17%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #929      +/-   ##
==========================================
+ Coverage   45.35%   45.52%   +0.17%     
==========================================
  Files         178      178              
  Lines       12637    12636       -1     
==========================================
+ Hits         5731     5753      +22     
+ Misses       6906     6883      -23
Impacted Files Coverage Δ
neo/Ledger/StorageKey.cs 65.21% <0%> (+23.55%) ⬆️
neo/IO/Helper.cs 64.06% <0%> (+8.85%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d0951d...c591ed3. Read the comment docs.

Copy link
Copy Markdown
Member

@vncoelho vncoelho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Simplified.

Is it also faster, @shargon? It reduces one casting?

@shargon
Copy link
Copy Markdown
Member Author

shargon commented Jul 18, 2019

One casting and one condition, because is already check if is null

@shargon shargon merged commit 7a61d87 into neo-project:master Jul 18, 2019
@shargon shargon deleted the storage-key-optimization branch July 18, 2019 07:15
Thacryba pushed a commit to simplitech/neo that referenced this pull request Feb 17, 2020
Tommo-L pushed a commit to Tommo-L/neo that referenced this pull request Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants