haskell - Which factors determine the appropriate value for settingsFork in a Warp application? -
in warp applications, settingsfork
option available on settings data type. allows 1 choose different fork model. when should set other default (void . forkiowithunmask
)? factors should taken account when making decision? (io vs cpu bound/use of ffi, example).
you may want use forkos
create bound thread if you're going manipulating thread-local state (as unbound haskell "threads" might run on different os threads, , therefore ruin whole idea of using thread-local storage in first place). documentation mentions opengl possible example. overall though, find difficult come situation wouldn't want default implementation, takes advantage of builtin green-thread system. it's received wisdom ghc's scheduler hard beat.
Comments
Post a Comment