diff --git a/item.go b/item.go index a32a6ad..684335f 100644 --- a/item.go +++ b/item.go @@ -12,9 +12,11 @@ import ( // You must always use the given methods. type Item[T any] struct { pool *Pool[T] - cfg any - stat status + // align 64 + + cfg any + // align 64 val T } diff --git a/pbuf/pooler.go b/pbuf/pooler.go index 4c0ace9..dd02ecc 100644 --- a/pbuf/pooler.go +++ b/pbuf/pooler.go @@ -9,8 +9,8 @@ import ( // UserBuffer with customizable user data structure inside. type UserBuffer[USRDAT any] struct { - bytes.Buffer DAT USRDAT + bytes.Buffer } type bufpooler[USRDAT any] struct{} diff --git a/pool.go b/pool.go index af0a305..782c296 100644 --- a/pool.go +++ b/pool.go @@ -9,10 +9,10 @@ import ( // Pool lightweight general pool. type Pool[T any] struct { - pooler Pooler[T] - pool sync.Pool countin int32 countout int32 + pooler Pooler[T] + pool sync.Pool noputbak bool manudstr bool }