Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Christophe Raffalli <Christophe.Raffalli@univ-savoie.fr>
To: Chris Hecker <checker@d6.com>
Cc: Shivkumar Chandrasekaran <shiv@ece.ucsb.edu>, caml-list@inria.fr
Subject: Re: [Caml-list] Slow GC problem
Date: Fri, 11 Apr 2003 09:58:39 +0200	[thread overview]
Message-ID: <3E9675AF.60308@univ-savoie.fr> (raw)
In-Reply-To: <4.3.2.7.2.20030410230929.04b20cf8@localhost>

[-- Attachment #1: Type: text/plain, Size: 1337 bytes --]

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

[-- Attachment #2: Type: application/pgp-signature, Size: 252 bytes --]

  reply	other threads:[~2003-04-12 11:30 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-04 19:40 Shivkumar Chandrasekaran
2003-04-03 21:07 ` Christophe Raffalli
2003-04-07 17:53 ` Shivkumar Chandrasekaran
2003-04-07 19:08   ` Chris Hecker
2003-04-08  7:15     ` David Monniaux
2003-04-08 10:28   ` Damien Doligez
2003-04-08 23:03     ` Shivkumar Chandrasekaran
2003-04-08 10:23 ` Damien Doligez
2003-04-10 21:21   ` Shivkumar Chandrasekaran
2003-04-10 21:51     ` Brian Hurt
2003-04-11  7:10     ` Chris Hecker
2003-04-11  7:58       ` Christophe Raffalli [this message]
2003-04-11 16:35         ` Shivkumar Chandrasekaran
2003-04-14 16:37 Shivkumar Chandrasekaran
2003-10-23  8:17 Chris Hecker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3E9675AF.60308@univ-savoie.fr \
    --to=christophe.raffalli@univ-savoie.fr \
    --cc=caml-list@inria.fr \
    --cc=checker@d6.com \
    --cc=shiv@ece.ucsb.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox