From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA16734; Sat, 12 Apr 2003 13:30:46 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id NAA16524 for caml-list@pauillac.inria.fr; Sat, 12 Apr 2003 13:29:21 +0200 (MET DST) Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id JAA14093 for ; Fri, 11 Apr 2003 09:58:55 +0200 (MET DST) Received: from post.bourget.univ-savoie.fr (post.bourget.univ-savoie.fr [193.48.120.73]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h3B7wtX22403 for ; Fri, 11 Apr 2003 09:58:55 +0200 (MET DST) Received: from univ-savoie.fr (d85.lama.univ-savoie.fr [193.48.123.85]) by post.bourget.univ-savoie.fr (8.12.3/jtpda-5.4) with ESMTP id h3B7wTmG017671 ; Fri, 11 Apr 2003 09:58:29 +0200 Message-ID: <3E9675AF.60308@univ-savoie.fr> Date: Fri, 11 Apr 2003 09:58:39 +0200 From: Christophe Raffalli User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Chris Hecker CC: Shivkumar Chandrasekaran , caml-list@inria.fr Subject: Re: [Caml-list] Slow GC problem References: <2E57564C-69AC-11D7-B7DE-0003930FCE12@inria.fr> <4.3.2.7.2.20030410230929.04b20cf8@localhost> X-Enigmail-Version: 0.65.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigBF77FDCEB4DE0D2DE7DAF070" X-Spam: no; 0.00; raffalli:01 univ-savoie:01 caml-list:01 openpgp:01 2440:01 3156:01 hecker:01 malloc:01 gc'd:01 soundness:01 savoie:01 chablais:01 73376:01 lama:01 enigmail:01 X-Attachments: type="application/pgp-signature" X-Spam: no; 0.00; raffalli:01 univ-savoie:01 caml-list:01 openpgp:01 2440:01 3156:01 hecker:01 malloc:01 gc'd:01 soundness:01 savoie:01 chablais:01 73376:01 lama:01 enigmail:01 X-Attachments: type="application/pgp-signature" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigBF77FDCEB4DE0D2DE7DAF070 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Chris Hecker wrote: > >> What if I modified bigarray_stubs.c to use the malloc and free calls >> of the Boehm gc (6.1-4) garbage collector? My reasoning is that malloc >> is performing poorly due to fragmentation, and switching to a gc'd >> version might help out. >> Before I try this I would like some feedback from the list on the >> soundness of this idea. > > > I don't mean to be a nag, but did you profile your application yet? A > very wise programmer once said, "Assume Nothing". > > Chris > Always remember that if you do anything preventing the compiler to use float optimizations, you will pay sometimes a 10 factor in speed and there may be other reasons (may be your second algorithm is really more efficient because you were more clever than you expected ?). GC problem are in fact not so common. So "Assume Nothing" because I suspect you are wrong ... -- Christophe Raffalli Université de Savoie Batiment Le Chablais, bureau 21 73376 Le Bourget-du-Lac Cedex tél: (33) 4 79 75 81 03 fax: (33) 4 79 75 87 42 mail: Christophe.Raffalli@univ-savoie.fr www: http://www.lama.univ-savoie.fr/~RAFFALLI --------------------------------------------- IMPORTANT: this mail is signed using PGP/MIME At least Enigmail/Mozilla, mutt or evolution can check this signature --------------------------------------------- --------------enigBF77FDCEB4DE0D2DE7DAF070 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQE+lnWvSQDyWB/+xBwRAlJfAJ9xyIPNOrw3boOHEQ/AW2M2byBHyACgxnP5 WVzbVhBW0mW8wJt3NCFnnyg= =3YoB -----END PGP SIGNATURE----- --------------enigBF77FDCEB4DE0D2DE7DAF070-- ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners