Skip to content

kevinmehall/once-array

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OnceArray

Documentation | Release Notes

A single-producer multiple-consumer append-only fixed capacity array in Rust.

Creating a OnceArrayWriter<T> allocates a fixed-capacity buffer and represents exclusive access to append elements. Any number of Arc<OnceArray<T>> references can be created and shared across threads. These readers can access the slice of committed elements, and see new elements as they are committed by the writer without any locking.

OnceArray serves as a building block for streaming data to multiple consumers while amortizing the cost of allocation and synchronization across chunks of many elements.

License

MIT or Apache 2.0 at your option

About

Rust append-only single-writer fixed-capacity vector that can be shared across threads and accessed as a slice

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages