umcconnell / comments

0 stars 0 forks source link

posts/2021-03-13-fibonacci-rust/ #1

Open utterances-bot opened 3 years ago

utterances-bot commented 3 years ago

umcconnell | Fibonacci in Rust

This post goes through different approaches to generating the Fibonacci sequence in Rust. It compares the speed of these approaches using the benchmarking crate criterion.

https://umcconnell.github.io/posts/2021-03-13-fibonacci-rust/

bzopcsak commented 3 years ago

Awesome stuff!

L00perxD commented 2 years ago

Shitty Article, not interesting or helpful at all

jclicodes commented 2 years ago

Nice article. Using a Rust iterator:

    let mut fib = FibIterator::default();
    for _ in 0.. x {
        println!("{}", fib.next().unwrap());
    }

Results in seriously quick computation, up to a value of 4660046610375530309 (the 90th number in the Fibonacci series), before overflowing.