X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=src%2Fmain.ml;fp=src%2Fmain.ml;h=1981fc2eec5102ff172e4f56d2a63e6b25b10f3c;hb=813b239795aac1844eb233dab7f8f98d8dba845e;hp=76e321df2b3e83d61c9a9b8e4b0e9f89c99427ca;hpb=ba65a1b770d860132fbb04be4ca931b983dcb915;p=SXSI%2Fxpathcomp.git diff --git a/src/main.ml b/src/main.ml index 76e321d..1981fc2 100644 --- a/src/main.ml +++ b/src/main.ml @@ -45,6 +45,8 @@ let main v query_string output = time ~msg:"Compiling query" (Compile.compile) query in if !Options.verbose then Ata.print Format.err_formatter auto; + Gc.full_major(); + Gc.compact(); Gc.set (tuned_gc); let runtime = match !Options.bottom_up, bu_info with @@ -117,6 +119,7 @@ in (*Printexc.record_backtrace true; *) main document !Options.query !Options.output_file; if !Options.verbose then Printf.eprintf "Maximum resident set size: %s\n" (read_procmem()); + Gc.full_major(); Profile.summary Format.err_formatter with | Ulexer.Loc.Exc_located ((x,y),e) ->