[rust-dev] Reading numbers from a mmap

2014-12-10 Thread Matt
Sorry if this has been covered before, and also that I'm a complete noob, but I'm thinking about trying a first project in Rust, and trying to learn enough to get started. My plan is for an on-disk key-value store. I'm going to end up writing arrays of numbers to disk, and then needing to

Re: [rust-dev] Reading numbers from a mmap

2014-12-10 Thread Daniel Micay
On 10/12/14 01:08 PM, Matt wrote: Sorry if this has been covered before, and also that I'm a complete noob, but I'm thinking about trying a first project in Rust, and trying to learn enough to get started. My plan is for an on-disk key-value store. I'm going to end up writing arrays of

Re: [rust-dev] Reading numbers from a mmap

2014-12-10 Thread Erick Tryzelaar
You could try the Cap'n Proto bindings https://github.com/dwrensha/capnproto-rust, which supports this zero-copy pattern, and should be fast enough to saturate most disks. On Wed, Dec 10, 2014 at 10:13 AM, Daniel Micay danielmi...@gmail.com wrote: On 10/12/14 01:08 PM, Matt wrote: Sorry if

Re: [rust-dev] Reading numbers from a mmap

2014-12-10 Thread Simon Sapin
On 10/12/14 18:08, Matt wrote: Sorry if this has been covered before, and also that I'm a complete noob, but I'm thinking about trying a first project in Rust, and trying to learn enough to get started. My plan is for an on-disk key-value store. I'm going to end up writing arrays of numbers to