[rust-dev] read file line by line

Patrick Walton pwalton at mozilla.com
Sun Apr 8 17:09:46 PDT 2012


On 04/08/2012 04:52 PM, Mic wrote:
> Hello,
> Thank you it is working. I created a writing and reading benchmark. In
> both cases Python is about 3 times faster than Rust.

I'd bet it's due to allocating too many vectors and copying vectors. We 
tend to get killed in vector allocation performance due to the fact that 
all vectors are unique and on the heap. This is what Graydon's work 
should alleviate.

Patrick


More information about the Rust-dev mailing list