caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* compiling large file hogs RAM and takes a long time.
@ 2007-06-06 16:30 Sam Steingold
  2007-06-06 16:51 ` [Caml-list] " skaller
                   ` (2 more replies)
  0 siblings, 3 replies; 29+ messages in thread
From: Sam Steingold @ 2007-06-06 16:30 UTC (permalink / raw)
  To: caml-list

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I wrote a parser generator for a tick data file.
The generated OCaml file is ~1Mb and contains ~120 variant type
definitions (each with 2 to ~100 variants) plus one polymorphic variant
type.
When I compiled it with ocamlopt (3.09.3), it took almost 10 minutes and
consumed ~500MB RAM (Firefox and Thunderbird were killed by the kernel
to make space for ocamlopt).
I run Linux 2.6.18.8 on a dual CPU Pentium D 2.80GHz with 1GB of RAM.
(in 32-bit mode)

So, is this something to be expected? 10 min / 500MB seems like a little
bit excessive to me, given that the file is really very simple conceptually.

Thanks!
Sam.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGZuEfPp1Qsf2qnMcRAjSYAKCFD4QBQdxk7qCGRb2LyHPHz5QrSQCgmjLl
yxHaXIU7wK6j+gWhG+zbZvA=
=nfep
-----END PGP SIGNATURE-----


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

end of thread, other threads:[~2007-07-11 19:22 UTC | newest]

Thread overview: 29+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-06 16:30 compiling large file hogs RAM and takes a long time Sam Steingold
2007-06-06 16:51 ` [Caml-list] " skaller
2007-06-06 17:05   ` Sam Steingold
2007-06-07 15:52 ` Sam Steingold
2007-06-08  1:02   ` [Caml-list] " Jacques Garrigue
2007-06-08  1:51     ` skaller
2007-06-08  2:26       ` Yaron Minsky
2007-06-08  9:05       ` Thomas Fischbacher
2007-06-08  9:35         ` skaller
2007-06-08  9:55           ` Thomas Fischbacher
2007-06-08 13:39       ` Sam Steingold
2007-06-08 12:30     ` [Caml-list] " Jacques Garrigue
2007-06-15 15:41       ` Sam Steingold
2007-06-15 18:56         ` [Caml-list] " Jon Harrop
2007-06-15 20:06           ` Sam Steingold
2007-07-09 20:22 ` large parametrized polymorphic variant type combinations take forever to compile Sam Steingold
2007-07-09 22:45   ` Sam Steingold
2007-07-09 23:37   ` [Caml-list] " Jacques Garrigue
2007-07-10  7:09     ` Christophe Raffalli
2007-07-10  7:31       ` Jacques Garrigue
2007-07-10 14:16     ` Sam Steingold
2007-07-10 16:49     ` Sam Steingold
     [not found]     ` <46938BDA.1090605@podval.org>
2007-07-11  0:10       ` [Caml-list] " Jacques Garrigue
2007-07-11  1:19         ` Jon Harrop
2007-07-11  2:23           ` Jacques GARRIGUE
2007-07-11 13:12         ` Sam Steingold
2007-07-11 19:17           ` [Caml-list] " Jon Harrop
2007-07-10  3:34   ` [Caml-list] " skaller
2007-07-10 13:27     ` Sam Steingold

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).