English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Is OCaml fast?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2010-11-22 (16:46)
From: Fabrice Le Fessant <fabrice@l...>
Subject: Re: [Caml-list] Is OCaml fast?
2010/11/22 Török Edwin <edwintorok@gmail.com>:
> Isn't it possible for the GC to realise its doing too many collections
> and increase the minor heap size on its own?

Indeed, it could notice that a lot of data is being moved to the major
heap, and double its size in consequence, until a maximum limit is

 The problem is that it is the kind of things that are application
dependent, and should be put in the program itself (the program would
have a trigger on each minor heap collection, and, depending on the
moved bytes, would increase the size of the minor heap). The problem
is that the Shootout does not allow that, so the winner is the
language whose runtime allocates the most memory at the beginnning...