Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BP

Introduction

BP is the abbreviation of binary pool, built-in multiple memory pools, the size of the managed memory is 256, 512, 1024... bytes (default).

Usage

package main

import "github.com/lxzan/bp"

func main() {
	pool := bp.NewPool(128, 128*1024)
	println(pool.Get(1).Cap(), pool.Get(200).Cap(), pool.Get(600).Cap())
}

About

buffer pool

Topics

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages