[Haskell-cafe] In-place modification

Sebastian Sylvan sebastian.sylvan at gmail.com
Sun Jul 15 08:25:18 EDT 2007

On 15/07/07, Hugh Perkins <hughperkins at gmail.com> wrote:
> On 7/15/07, Sebastian Sylvan <sebastian.sylvan at gmail.com> wrote:
> > Surely you can remove the read here, and just always do the write?
> >
> >
> Ah you'd think so, but if it's anything like the C# version, strangely that
> would be slower.  In his last message Don explains that this is because the
> write dirties the cache, which is a Bad Move (tm).

Ah, it was faster in GHCi, and I couldn't test it compiled because my
GHC install is a bit messed up at the moment...

Sebastian Sylvan
UIN: 44640862

More information about the Haskell-Cafe mailing list