[GHC] #427: Random.StdGen slowness
GHC
trac at galois.com
Mon Mar 2 18:31:17 EST 2009
#427: Random.StdGen slowness
---------------------------------+------------------------------------------
Reporter: remit | Owner:
Type: bug | Status: new
Priority: low | Milestone: _|_
Component: libraries/random | Version: 6.4.1
Severity: normal | Resolution: None
Keywords: | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Comment (by Remi):
The slowness is most probably due to all the Integer conversions or
perhaps also the algorithm used. (It's been years ago and I'm definitely
not an expert on PRNGs.)
However, IIRC making getStdRandom more strict does solve the thunk-bomb
problem.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/427#comment:13>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list