Closed co-dan closed 11 years ago
Currently in scotty-pastebin every request spawns a new worker. In evali there is only one thread
It is also possible to start every evaluation handler in a new thread using forkIO or whatnot (See: https://github.com/co-dan/interactive-diagrams/blob/f69750f7c8c2fcea85f3a166c917c07481503492/eval-api/src/Eval.hs#L119), but it's a bad idea probably.
forkIO
This was implemented in: https://github.com/co-dan/interactive-diagrams/commit/80e19edbabf9443394213bfad1a16e8e2a08be61
See https://github.com/co-dan/interactive-diagrams/wiki/Design for more info
Currently in scotty-pastebin every request spawns a new worker. In evali there is only one thread
It is also possible to start every evaluation handler in a new thread using
forkIO
or whatnot (See: https://github.com/co-dan/interactive-diagrams/blob/f69750f7c8c2fcea85f3a166c917c07481503492/eval-api/src/Eval.hs#L119), but it's a bad idea probably.