You might be interested in http://hackage.haskell.org/package/global-variables for this.
Cheers
Johan
On Wed, Jan 29, 2014 at 1:09 PM, Ömer Sinan Ağacan <omeragacan@gmail.com> wrote:--
> It isn't clear thatWhy is that? I think it's clear since I'm eliminating malloc calls.
> this will give an improvement in performance
(though one may claim that malloc calls are so cheap it's not even
measurable)(1) it's not really malloc since it's being garbage collected when out of scope(2) given that there is a lot of allocation anyway and anything allocated as ephemerally as this use case is very common and very highly optimized, it's not really worth itbrandon s allbery kf8nh sine nomine associatesunix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe