Re: [rust-dev] capnproto-rust: performance and safety compared to C++

2013-11-18 Thread Brian Anderson
On 11/17/2013 11:30 AM, David Renshaw wrote: Hi everyone. I wrote up some of my latest experiences implementing Cap'n Proto encoding for Rust. A performance comparison to C++, or "capnproto-rust is pretty fast": http://dwrensha.github.io/capnproto-rust/2013/11/16/benchmark.html A discussion

Re: [rust-dev] capnproto-rust: performance and safety compared to C++

2013-11-17 Thread Patrick Walton
I wonder if you aren't buffering the writes or whether the buffer isn't functioning optimally. That would be consistent with a large performance degradation on complex structures, because there will be many small write syscalls. Running dtruss or strace to observe syscalls may be helpful. Patri

Re: [rust-dev] capnproto-rust: performance and safety compared to C++

2013-11-17 Thread David Renshaw
The asReader() methods are also doing more work than necessary. To address that, I think I'll first need to get the lifetime parameter situation sorted out. On Sun, Nov 17, 2013 at 4:49 PM, Huon Wilson wrote: > On 18/11/13 06:30, David Renshaw wrote: > > Hi everyone. > > I wrote up some of m

Re: [rust-dev] capnproto-rust: performance and safety compared to C++

2013-11-17 Thread Patrick Walton
On 11/17/13 1:49 PM, Huon Wilson wrote: I see that you mention slowness in IO and some extra string copies; are there any other low-hanging fruit that you know of? Or is it all down to micro-optimisation now? It would be interesting to profile the I/O and see what's causing the slowness. Pat

Re: [rust-dev] capnproto-rust: performance and safety compared to C++

2013-11-17 Thread Huon Wilson
On 18/11/13 06:30, David Renshaw wrote: Hi everyone. I wrote up some of my latest experiences implementing Cap'n Proto encoding for Rust. A performance comparison to C++, or "capnproto-rust is pretty fast": http://dwrensha.github.io/capnproto-rust/2013/11/16/benchmark.html A discussion of sa

[rust-dev] capnproto-rust: performance and safety compared to C++

2013-11-17 Thread David Renshaw
Hi everyone. I wrote up some of my latest experiences implementing Cap'n Proto encoding for Rust. A performance comparison to C++, or "capnproto-rust is pretty fast": http://dwrensha.github.io/capnproto-rust/2013/11/16/benchmark.html A discussion of safety, or "why I'm so keen to see support for