Re: [Haskell-cafe] Help with optimization

2008-07-20 Thread Don Stewart
mmitar: > Hi! > > Profiling says that my program spends 18.4 % of time (that is around > three seconds) and 18.3 % of allocations in this function which is > saving the rendered image to a PPM file: > > saveImageList :: String -> Int -> Int -> [ViewportDotColor] -> IO () > saveImageList filename

Re: [Haskell-cafe] Help with optimization

2008-07-20 Thread Mitar
Hi! 2008/7/20 Adrian Neumann <[EMAIL PROTECTED]>: > Maybe your image isn't strict enough and the computations are forced when > the image gets written to disc? But it still takes three seconds more than displaying to the screen. This is why I am also thinking that this code is to slow. This and t

Re: [Haskell-cafe] Help with optimization

2008-07-20 Thread Adrian Neumann
Maybe your image isn't strict enough and the computations are forced when the image gets written to disc? Am 20.07.2008 um 14:13 schrieb Mitar: Hi! Profiling says that my program spends 18.4 % of time (that is around three seconds) and 18.3 % of allocations in this function which is saving

[Haskell-cafe] Help with optimization

2008-07-20 Thread Mitar
Hi! Profiling says that my program spends 18.4 % of time (that is around three seconds) and 18.3 % of allocations in this function which is saving the rendered image to a PPM file: saveImageList :: String -> Int -> Int -> [ViewportDotColor] -> IO () saveImageList filename width height image = do