Advice wanted on parallel processing
Brandon S. Allbery KF8NH
allbery at ece.cmu.edu
Wed Mar 18 16:51:44 EDT 2009
On 2009 Mar 18, at 16:34, Colin Paul Adams wrote:
> The one routine that stood out was this one (about 35% CPU time, with
> 0% attributed to children):
>
>
> -- | Value of one rank of the board
> rank_value :: (Int, Array Int Square) -> Int
> rank_value (rank_coord, rank') = sum (map (cell_value rank_coord)
> (assocs rank'))
>
> The array has 12 elements.
How many times do you call it? Perhaps the real optimization you need
is to memoize.
--
brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at kf8nh.com
system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
electrical and computer engineering, carnegie mellon university KF8NH
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
Url : http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20090318/34cbcadc/PGP-0001.bin
More information about the Glasgow-haskell-users
mailing list