[project @ 2004-02-25 17:35:44 by simonmar]
authorsimonmar <unknown>
Wed, 25 Feb 2004 17:35:44 +0000 (17:35 +0000)
committersimonmar <unknown>
Wed, 25 Feb 2004 17:35:44 +0000 (17:35 +0000)
commitdc167ccabab5e24aea9de1597285ce2f24277baf
tree0123592d8b9896de39ab0f44f524c789df6baf11
parente15f63f358d021b7901562ad787fbd1fb00c9a82
[project @ 2004-02-25 17:35:44 by simonmar]
Feeble performance hack for the threaded RTS: instead of
allocating/releasing a new condition variable for each new call-in, we
just cache one in the RTS and re-use it for the next call.

On a little test I have here which does lots of call-ins on Windows,
this reduces the slowdown for using the threaded RTS from a factor of
7-8 down to a factor of 4-5.  I'm aiming for a factor of 2 or better...
ghc/rts/Schedule.c