Skip to content

A file backed circular buffer for Go. Mmap file into memory. Madvise to lower memory footprint.

License

Notifications You must be signed in to change notification settings

elv-serban/buffer

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Circular Buffer

GoDoc Build Status Coverage Status

This is a circular buffer implementation designed to be used with gigabyte sized buffers. It uses a file as its backing store. The backing file is mmap'd into memory. One can lower the resident memory size of the program by advising where the customer cursor is (uses madvise). The buffer can be loaded again from the backing file if the program exists.

For now please check tests for examples.

About

A file backed circular buffer for Go. Mmap file into memory. Madvise to lower memory footprint.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%