Skip to content

Commit

Permalink
rpc_util: add pool size comments
Browse files Browse the repository at this point in the history
  • Loading branch information
hueypark committed Mar 17, 2023
1 parent acec626 commit 3cbb6b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared_buffer_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@ func (p *simpleSharedBufferPool) Put(bs *[]byte) {
}

const (
level0PoolMaxSize = 16
level1PoolMaxSize = level0PoolMaxSize * 16
level0PoolMaxSize = 16 // 16 B
level1PoolMaxSize = level0PoolMaxSize * 16 // 256 B
level2PoolMaxSize = level1PoolMaxSize * 16 // 4 KB
level3PoolMaxSize = level2PoolMaxSize * 16 // 64 KB
level4PoolMaxSize = level3PoolMaxSize * 16 // 1 MB
Expand Down

0 comments on commit 3cbb6b5

Please sign in to comment.