async_io_map/lib.rs
1mod read;
2mod write;
3
4pub use read::*;
5pub use write::*;
6
7#[cfg(test)]
8mod test;
9
10const DEFAULT_BUFFER_SIZE: usize = 8192;
11
12// TODO - Would it be better to use a dynamic buffer that grows for the reader,
13// or to change the writer to use a fixed size buffer and flush it when full like the reader?
14// This would allow for more efficient writes and reads, especially for larger data sets,
15// but would require more complex logic to manage the buffer size and flushing behavior.
16// Conversely, the current implementation of the writer allows for more user error
17// by allowing the user to expand the buffer capacity which will affect future writes.