Commit e97e834e authored by AlexStocks's avatar AlexStocks

Mod: three types reusage

parent 5ac8e681
...@@ -13,7 +13,7 @@ import ( ...@@ -13,7 +13,7 @@ import (
) )
///////////////////////////////// /////////////////////////////////
// 请求维度的内存申请复用 // 请求维度的内存(普通对象)申请复用
///////////////////////////////// /////////////////////////////////
var ins exampleBufferCtx var ins exampleBufferCtx
...@@ -65,7 +65,7 @@ func run(ctx context.Context) { ...@@ -65,7 +65,7 @@ func run(ctx context.Context) {
} }
///////////////////////////////// /////////////////////////////////
// IoBuffer复用 // IoBuffer 复用
///////////////////////////////// /////////////////////////////////
// GetIoBuffer returns IoBuffer from pool // GetIoBuffer returns IoBuffer from pool
...@@ -84,7 +84,7 @@ func PutIoBuffer(buf gxbytes.Buffer) error { ...@@ -84,7 +84,7 @@ func PutIoBuffer(buf gxbytes.Buffer) error {
} }
///////////////////////////////// /////////////////////////////////
// Byte复用 // slice 复用
///////////////////////////////// /////////////////////////////////
// GetBytes returns *[]byte from byteBufferPool // GetBytes returns *[]byte from byteBufferPool
......
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