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.

Patrick

Patrick

David Renshaw <[email protected]> wrote:
>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 <[email protected]> wrote:
>
>>  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 safety, or "why I'm so keen to see support for
>static
>> trait methods with lifetime parameters":
>>  http://dwrensha.github.io/capnproto-rust/2013/11/17/lifetimes.html
>>
>>
>>
>> _______________________________________________
>> Rust-dev mailing
>[email protected]https://mail.mozilla.org/listinfo/rust-dev
>>
>>
>> This is cool!
>>
>> 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?
>>
>>
>> Huon
>>
>> _______________________________________________
>> Rust-dev mailing list
>> [email protected]
>> https://mail.mozilla.org/listinfo/rust-dev
>>
>>
>
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Rust-dev mailing list
>[email protected]
>https://mail.mozilla.org/listinfo/rust-dev

-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
_______________________________________________
Rust-dev mailing list
[email protected]
https://mail.mozilla.org/listinfo/rust-dev

Reply via email to