16 May 13:44
Re: How to use arrays efficiently?
Lauri Oksanen <lassoken <at> gmail.com>
2008-05-16 11:44:19 GMT
2008-05-16 11:44:19 GMT
Thanks for help. I did some tests with UArray and it does the trick.
The problem remaining is, how to implement UArray Int (Double, Double, Double)?
UArray source code is far too cryptic for me.
Regards,
Lauri
On Fri, May 16, 2008 at 11:37 AM, Bulat Ziganshin <bulat.ziganshin <at> gmail.com> wrote:
Hello Lauri,
Friday, May 16, 2008, 12:19:29 PM, you wrote:
> pixelArray :: Array Int Color
it's boxed array which means that its elements are stored as thunks
computed only when you actually use them. try UArray instead:
http://haskell.org/haskellwiki/Modern_array_libraries
--
Best regards,
Bulat mailto:Bulat.Ziganshin <at> gmail.com
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe <at> haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe
RSS Feed