From: Jacques Carette <carette@mcmaster.ca>
To: caml-list@inria.fr
Subject: Compilation speed of modules/functors
Date: Mon, 22 Aug 2005 12:03:48 -0400 [thread overview]
Message-ID: <4309F764.9050409@mcmaster.ca> (raw)
Are there known issues with compilation speed of heavily functorized
code? My code used to use a lot of records, but that was not very
extensible, so I switched to using modules and functors. Now the
compilation time has gone from << 1 second to 5-6 seconds (on my slow
laptop). While not the end of the world, this still surprised me. Are
there known issues in this area? Known pitfalls and work-arounds?
The actual codes are in MetaOCaml, but I did some experiments in pure
Ocaml and got the same results, so it is not due to MetaOCaml (sorry,
these are no longer available). The curious can look at
http://www.metaocaml.org/examples/gausselim/
for record-based code and
http://www.cas.mcmaster.ca/~carette/metamonads/
for functor-based code.
Jacques
next reply other threads:[~2005-08-22 16:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-22 16:03 Jacques Carette [this message]
2005-08-22 17:00 ` [Caml-list] " Christian Lindig
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4309F764.9050409@mcmaster.ca \
--to=carette@mcmaster.ca \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox