Comment Comment by IsTom > Functional code in Haskell/OCaml can be faster than imperative code using iorefs.IORefs involve locking. They are bad performance-wise. An algorithm like this should be done either fully functionaly without any mutation at all or in ST. parent IsTom 12 years ago
IORefs involve locking. They are bad performance-wise. An algorithm like this should be done either fully functionaly without any mutation at all or in ST.