insert_multiple

Crates.ioinsert_multiple
lib.rsinsert_multiple
version0.2.0
sourcesrc
created_at2018-11-05 22:36:59.565581
updated_at2018-11-05 23:53:48.954683
descriptioninsert multiple items into a stream in reasonable runtime
homepage
repositoryhttps://github.com/coriolinus/insert_multiple
max_upload_size
id94908
size10,623
owners (github:sozu-proxy:owners)

documentation

README

insert_multiple: insert multiple items into a stream

The scenario: you have an input stream, and you know you wish to insert a number of items into this stream at known offsets.

If your stream is a String or a Vec<u8> or similar, you shouldn't do this naively: performance is O(n**2), and you have to care about looping backwards through the input stream to preserve your offsets.

This crate supports this use case in O(n).

Commit count: 8

cargo fmt