4 ms·
>> Porting code from Python to Rust for example often gives 10-100x speedups right off the bat. As long as you don't do a couple of things that, while easy to
by dralley 3y ago
>> Porting code from Python to Rust for example often gives 10-100x speedups right off the bat.
As long as you don't do a couple of things that, while easy to remember not to do once you know them, a programmer used to languages like Python and Javascript might be oblivious to. Things like:
* Forgetting to use buffered IO wrappers
* Using println!() for high-volume console printing rather than locking stdout and writing to it manually