Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Implement new Codec that uses
mem.BufferSlice
instead of[]byte
#7356Implement new Codec that uses
mem.BufferSlice
instead of[]byte
#7356Changes from 39 commits
12bf91d
5575dbc
3807e4b
d9f1aa7
abb4993
eb442ed
3578382
cf49cd1
28f5651
842d3fc
d3863ec
1ba7894
b4b467f
466a0ce
afcd86a
710ee3d
80eab7c
af0a194
e9deef0
74ffdf4
527b644
5a1e22e
13efcff
3e7f3d4
ab24c18
af4644b
df282ce
3ef511e
017b72f
978d448
9be25eb
23975fc
25adf8a
9962795
5ee8565
c5ed951
a2a6add
b6894dd
37f1c30
9a877dd
be4d4ab
5624e37
169406f
c029ea2
0889be4
dace88f
14c288c
ae308d4
01ac2c6
1261d3e
50bda24
4d0eaa5
f6f8b48
5aa0784
284c19c
0d79099
2ee31ca
c2d9987
3a8cac5
462e031
30f191b
aaca195
89ca8a9
84c5817
87df011
e6c6731
5cbb1d7
6e2146e
152db3d
981a5dc
8c40132
5074715
aa33829
19cc6b3
2efbe0d
35f35e4
606b9f2
5672329
8898f13
4949fc4
d4b487a
4b0c81e
44376be
ebffde3
b82bf1f
c87426e
83d0322
87a408c
aaa3f16
6c38c43
189e620
d557400
a7fb1d6
299260c
6ad4793
dab5e1e
7ff751b
bcb1b41
04691be
27f2187
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 49 in codec.go
Codecov / codecov/patch
codec.go#L49
Check warning on line 56 in codec.go
Codecov / codecov/patch
codec.go#L55-L56
Check warning on line 761 in dialoptions.go
Codecov / codecov/patch
dialoptions.go#L761
Check warning on line 763 in dialoptions.go
Codecov / codecov/patch
dialoptions.go#L763
Check warning on line 62 in encoding/encoding_v2.go
Codecov / codecov/patch
encoding/encoding_v2.go#L62
Check warning on line 65 in encoding/encoding_v2.go
Codecov / codecov/patch
encoding/encoding_v2.go#L65
Check warning on line 42 in encoding/proto/proto_v2.go
Codecov / codecov/patch
encoding/proto/proto_v2.go#L42
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should use the buffer pool configured on the channel, instead of the default buffer pool, right?
To be able to do that though, we need some way for the codec to know which pool to use (based on which channel is making the request). One options is to register a factory with the
encoding
package instead of registering the codec itself, and when building an instance of the codec using the factory, we can pass in the configured buffer pool.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we previously had a conversation on this. If the user really wants to have the specific pool that's used by the channel, they can provide a custom codec when initializing the client/server and make sure that that custom codec reuses the same
BufferPool
provided withexeperimental.BufferPool
Check warning on line 49 in encoding/proto/proto_v2.go
Codecov / codecov/patch
encoding/proto/proto_v2.go#L48-L49
Check warning on line 57 in encoding/proto/proto_v2.go
Codecov / codecov/patch
encoding/proto/proto_v2.go#L57
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar concern for the read path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
Check warning on line 47 in experimental/experimental.go
Codecov / codecov/patch
experimental/experimental.go#L46-L47
Check warning on line 63 in experimental/experimental.go
Codecov / codecov/patch
experimental/experimental.go#L62-L63