Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use only one write in the varint writer when possible #504

Merged
merged 1 commit into from
Nov 16, 2018

Conversation

Stebalien
Copy link
Contributor

This helps when calling Write is expensive and we'd rather not introduce another buffered writer.

Note: this also fixes a bug where we'd try to use MarshalTo even if getSize failed.

This helps when calling `Write` is expensive and we'd rather not introduce
another buffered writer.

Note: this *also* fixes a bug where we'd try to use `MarshalTo` even if
`getSize` failed.
@donaldgraham donaldgraham merged commit 07eab6a into gogo:master Nov 16, 2018
@Stebalien Stebalien deleted the feat/one-write branch November 16, 2018 17:50
bpot added a commit to bpot/go-bitswap that referenced this pull request Mar 27, 2019
This reverts commit fc1278e.

It appears that using a buffer here is no longer necessary after the
upstream fix gogo/protobuf#504
Jorropo pushed a commit to Jorropo/go-libipfs that referenced this pull request Jan 26, 2023
This reverts commit 3ac3a96.

It appears that using a buffer here is no longer necessary after the
upstream fix gogo/protobuf#504


This commit was moved from ipfs/go-bitswap@c9aa374
hannahhoward pushed a commit to ipfs/go-protocolnetwork that referenced this pull request Apr 7, 2023
This reverts commit 119f4cb.

It appears that using a buffer here is no longer necessary after the
upstream fix gogo/protobuf#504


This commit was moved from ipfs/go-bitswap@c9aa374
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.

2 participants