Optimized Fibonacci in F#

Vlad Chistyakov suggested to use [Memoze] macro attribute to speed up the Nemerle version of Fibonacci function. I don't think it's a very good idea to use macros in situations where plane functions work just well. Look at an optimized F# Fibonacci:

The speed is fantastic, as expected:


Popular posts from this blog

STM: F# vs Haskell

Upcoming F# struct tuples: are they always faster?

Computing cryptography hashes: Rust, F#, D and Scala