Commit 5ac8e681 authored by AlexStocks's avatar AlexStocks

Mod: add remark for memory pool

parent e3391e63
...@@ -32,10 +32,12 @@ type ContextKey int ...@@ -32,10 +32,12 @@ type ContextKey int
const ( const (
ContextKeyBufferPoolCtx ContextKey = iota ContextKeyBufferPoolCtx ContextKey = iota
ContextKeyEnd ContextKeyEnd = 15
) )
const ( const (
// !! there are 16 levels memory block in a memory pool.
// such as 2 4 8 16 32 64 128 512 1024 ...
maxBufferPool = 16 maxBufferPool = 16
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment