diagrams / diagrams-haddock

Preprocessor for including inline diagrams in Haddock documentation
Other
10 stars 4 forks source link

Parallelism! #19

Open byorgey opened 10 years ago

byorgey commented 10 years ago

diagrams-haddock has some embarrassing parallelism going on. We should add a -j flag that turns on multithreading.

byorgey commented 10 years ago

Some notes:

fryguybob commented 10 years ago

I implemented something on the parallel branch 1d5bc08493a9b34d254ce7e5894ec989c82c5f66 but when I run I get the disappointing message:

This version of GHC is not thread-safe,can't safely run two instances of the interpreter simultaneously

How sad!

byorgey commented 10 years ago

Bummer! See http://ghc.haskell.org/trac/ghc/ticket/3373 . I suppose one workaround would be to actually fire up N copies of the RTS in different OS processes? But that would probably have a lot of overhead, and I don't know if it would be worth the trouble.