caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Performance penalty for using monad
@ 2017-09-18 15:23 Helmut Brandl
  2017-09-18 15:31 ` Yotam Barnoy
  0 siblings, 1 reply; 10+ messages in thread
From: Helmut Brandl @ 2017-09-18 15:23 UTC (permalink / raw)
  To: caml users

I want to restructure my project using monads (reader, state, option, etc.) in order to get cleaner code.

Is there any performance penalty to pay. From my understanding there shouldn’t be any or only very little since aggressive inlining should be able to compile the monads away.

Is there any experience on how the optimizing ocaml compiler is able to optimize monadic code?

Regards
Helmut

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-09-25  9:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-18 15:23 [Caml-list] Performance penalty for using monad Helmut Brandl
2017-09-18 15:31 ` Yotam Barnoy
2017-09-19 12:46   ` Helmut Brandl
2017-09-19 13:24     ` Jesper Louis Andersen
2017-09-19 16:33       ` Helmut Brandl
2017-09-24  9:22         ` David Allsopp
2017-09-24 11:28           ` Yaron Minsky
2017-09-24 20:04             ` Josh Berdine
2017-09-25  8:32               ` Mark Shinwell
2017-09-25  9:25                 ` Josh Berdine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).