diff options
| author | Thomas Schilling <nominolo@googlemail.com> | 2009-08-24 18:22:52 +0000 |
|---|---|---|
| committer | Thomas Schilling <nominolo@googlemail.com> | 2009-08-24 18:22:52 +0000 |
| commit | 738f70785e381ca2f43413a1d8efa4d5929b8231 (patch) | |
| tree | 4e42e546a37fa03268b80a7d32b3802726e9524e /compiler/utils/GraphBase.hs | |
| parent | d11718fa4d13519e48ef72d0b932972ce806730b (diff) | |
| download | haskell-738f70785e381ca2f43413a1d8efa4d5929b8231.tar.gz | |
Make FastString thread-safe.
This is needed both for per-session parallelism and for allowing
multiple concurrent sessions in the same process. With the help of
atomicModifyIORef and unsafePerformIO it is also quite fast--an MVar
would most likely be slower. On a full compilation of Cabal's head
branch it was about 1-2 percent slower, but then overall compilation
times varied by about 4 percent, so I think it's worth it.
Diffstat (limited to 'compiler/utils/GraphBase.hs')
0 files changed, 0 insertions, 0 deletions
