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

rpc_util: Reuse memory buffer for receiving message #5862

Merged
merged 42 commits into from
Jun 27, 2023
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
493be5d
rpc_util: add bytes pool for the parser
hueypark Jan 25, 2023
ecdb6d2
rpc_util: handle empty buffer case for copy payInfo.uncompressedBytes
hueypark Jan 25, 2023
cb8827d
rpc_util: Use a pool of bytes with varying sizes for the parser
hueypark Jan 31, 2023
bae37e3
grpc: Add useBytesPoolForParser option
hueypark Jan 31, 2023
cbaef54
rpc_util: Fix a. vet error
hueypark Jan 31, 2023
f9730dd
rpc_util: Copy the buffer only if the pool option is enabled
hueypark Feb 25, 2023
e746250
rpc_util: Rename the option to `useSharedRecvBuffers`
hueypark Feb 25, 2023
711db78
rpc_util: Introduce user created shared recv buffer pool option
hueypark Feb 25, 2023
c05feed
benchmark: Introduce shared receive buffers(nil and simple) feature
hueypark Feb 25, 2023
9390057
Merge branch 'master' into master
hueypark Mar 4, 2023
b1c6496
rpc_util: export a SharedBufferPool
hueypark Mar 15, 2023
086dd28
rpc_util: improve comment for the option function
hueypark Mar 15, 2023
d6c1d97
rpc_util: introduce simple pool implementation for new user
hueypark Mar 15, 2023
1b11bba
rpc_util: add a copyright
hueypark Mar 15, 2023
a44c200
rpc_util: set the default value of the sharedRecvBufferPool to nil
hueypark Mar 15, 2023
6b5000f
rpc_util: add experimental notices to SharedBufferPool
hueypark Mar 15, 2023
c34da60
rpc_util: provide more detail in SharedBufferPool comment
hueypark Mar 15, 2023
acec626
rpc_util: use multiple buckets for the simpleSharedBufferPool
hueypark Mar 15, 2023
3cbb6b5
rpc_util: add pool size comments
hueypark Mar 17, 2023
57b9c67
rpc_util: add a SharedBufferPool function comments
hueypark Mar 17, 2023
76caf74
rpc_util: use preconfigured size buffers for each pool
hueypark Mar 17, 2023
8f33b9b
rpc_util: remove duplicate Put function
hueypark Mar 22, 2023
5155566
rpc_util: add default recv buffer pool with nop functionality
hueypark Apr 9, 2023
15f820e
rpc_util: use array for the simple shared buffer pool
hueypark Apr 9, 2023
539eef3
Merge remote-tracking branch 'upstream/master'
hueypark Apr 9, 2023
056b3e5
rpc_util: use fallback bytes pool for the simple shared buffer pool
hueypark Apr 9, 2023
0d07cfc
rpc_util: remove a wrong test
hueypark Apr 11, 2023
7f6fdb2
Merge remote-tracking branch 'upstream/master'
hueypark Apr 19, 2023
ca9f6de
rpc_util: add limitation comment for the shared buffer pool
hueypark Apr 19, 2023
9be7889
rpc_util: exclude shared prefix from shared recv buffer pool
hueypark Apr 19, 2023
25b60e3
rpc_util: rename NewSimpleSharedBufferPool to NewsimpleSharedBufferPool
hueypark Apr 19, 2023
8e8f683
rpc_util: add a TestRecvBufferPool
hueypark Apr 19, 2023
96f5a27
rpc_util: rename NewsimpleSharedBufferPool to NewSharedBufferPool
hueypark May 20, 2023
fe1294f
rpc_util: merge fallback bytespool functionality into bytepool
hueypark May 20, 2023
5535416
rpc_util: add capacity checks for all buffer pool sizes
hueypark May 23, 2023
2678efb
rpc_util: return unused buffers to memory pool
hueypark May 23, 2023
8199eeb
Merge remote-tracking branch 'upstream/master'
hueypark May 28, 2023
a70df17
Merge remote-tracking branch 'upstream/master'
hueypark May 31, 2023
86d999f
Merge remote-tracking branch 'upstream/master'
hueypark Jun 27, 2023
63a360e
rpc_util: remove a useless newline
hueypark Jun 27, 2023
1f4bc35
rpc_util: standardize buffer pool interface to use []byte in Put method
hueypark Jun 27, 2023
3dcd833
Revert "rpc_util: standardize buffer pool interface to use []byte in …
hueypark Jun 27, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
rpc_util: set the default value of the sharedRecvBufferPool to nil
  • Loading branch information
hueypark committed Mar 15, 2023
commit a44c2005e3ada9f57680c1ac8ae8678e1963f253
2 changes: 1 addition & 1 deletion benchmark/benchmain/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ var (
clientWriteBufferSize = flags.IntSlice("clientWriteBufferSize", []int{-1}, "Configures the client write buffer size in bytes. If negative, use the default - may be a a comma-separated list")
serverReadBufferSize = flags.IntSlice("serverReadBufferSize", []int{-1}, "Configures the server read buffer size in bytes. If negative, use the default - may be a a comma-separated list")
serverWriteBufferSize = flags.IntSlice("serverWriteBufferSize", []int{-1}, "Configures the server write buffer size in bytes. If negative, use the default - may be a a comma-separated list")
sharedRecvBufferPool = flags.StringWithAllowedValues("sharedRecvBufferPool", sharedRecvBufferPoolAll, "Configures the shared receive buffer pool. One of: nil, simple", allSharedRecvBufferPools)
sharedRecvBufferPool = flags.StringWithAllowedValues("sharedRecvBufferPool", sharedRecvBufferPoolNil, "Configures the shared receive buffer pool. One of: nil, simple, all", allSharedRecvBufferPools)

logger = grpclog.Component("benchmark")
)
Expand Down