Browse thread
compiling large file hogs RAM and takes a long time.
-
Sam Steingold
- Sam Steingold
-
skaller
- Sam Steingold
- Sam Steingold
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Sam Steingold <sds@g...> |
| Subject: | Re: compiling large file hogs RAM and takes a long time. |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 skaller wrote: > On Wed, 2007-06-06 at 12:30 -0400, Sam Steingold wrote: >> >> 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). > > Use ocamlopt.opt .. ocamlopt is actually a bytecode program .. actually, I use omake and what I see is "ocamlfind ocamlc ...". -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGZulTPp1Qsf2qnMcRAiICAJ47QKCgtDnr8eBD904qDBY79zhc/wCeLpQ+ zUgkpYY9u5oOEgZypvi3FYY= =wf5J -----END PGP SIGNATURE-----