Browse thread
compiling large file hogs RAM and takes a long time.
-
Sam Steingold
- Sam Steingold
- skaller
- 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: | skaller <skaller@u...> |
| Subject: | Re: [Caml-list] compiling large file hogs RAM and takes a long time. |
On Wed, 2007-06-06 at 12:30 -0400, Sam Steingold wrote: > -----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). Use ocamlopt.opt .. ocamlopt is actually a bytecode program .. -- John Skaller <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net