Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lxzan/bp
buffer pool
https://github.com/lxzan/bp
bufferpool
Last synced: 3 months ago
JSON representation
buffer pool
- Host: GitHub
- URL: https://github.com/lxzan/bp
- Owner: lxzan
- License: mit
- Created: 2024-04-30T13:42:51.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-11T08:08:03.000Z (8 months ago)
- Last Synced: 2024-06-19T11:28:01.464Z (7 months ago)
- Topics: bufferpool
- Language: Go
- Homepage:
- Size: 6.84 KB
- Stars: 5
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 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
```go
package mainimport "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())
}
```