Open joelberkeley opened 9 months ago
also search for the thread monads are slow in discord #general
possible duplicate of #399
also see this thread where stefan suggests using EitherT e IO
at maximum, as well as tail recursion over e.g. traverse
which is "both slow and not stack safe".
also
IO
profits from its special treatment only when aHasIO io =>
function is inlined (many IO functions in the Prelude areIO
-polymorphic and not inlined), so yes, its about polymorphic code mostly.
See Stefan Hoeck's thread in Discord