Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
go-merkledag
Commits
de6f1daf
Unverified
Commit
de6f1daf
authored
Feb 28, 2019
by
Steven Allen
Committed by
GitHub
Feb 28, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #34 from ipfs/fix/fast-read
fix some performance regressions when reading protobuf nodes
parents
11062dcd
3bdd47fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
2 deletions
+1
-2
coding.go
coding.go
+1
-1
node.go
node.go
+0
-1
No files found.
coding.go
View file @
de6f1daf
...
...
@@ -131,7 +131,7 @@ func DecodeProtobufBlock(b blocks.Block) (ipld.Node, error) {
}
decnd
.
cached
=
c
decnd
.
SetCidB
uilder
(
c
.
Prefix
()
)
decnd
.
b
uilder
=
c
.
Prefix
()
return
decnd
,
nil
}
...
...
node.go
View file @
de6f1daf
...
...
@@ -78,7 +78,6 @@ func (n *ProtoNode) SetCidBuilder(builder cid.Builder) {
n
.
builder
=
v0CidPrefix
}
else
{
n
.
builder
=
builder
.
WithCodec
(
cid
.
DagProtobuf
)
n
.
encoded
=
nil
n
.
cached
=
cid
.
Undef
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment