co-dan / interactive-diagrams

Interactive-diagrams
39 stars 2 forks source link

Change the API to use a given number of workers. #6

Closed co-dan closed 11 years ago

co-dan commented 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.

co-dan commented 11 years ago

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