0
comment
comment
on 9/24/2015 8:45 AM
Let's implement the following task: read first 10M lines from a text file of the following format:then find all lines containing Microsoft namespace in them, and format the type names the usual way, like "Microsoft.Win32.IAssemblyEnum".First, F#:Now Rust:After several launches the file was cached by the OS and both implementations became non IO-bound. F# one took 29 seconds and 31MB of RAM at peak; Rust - 11 seconds and 18MB.The Rust code is as twice as long as F# one, but it's handling all possible errors[...]