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
[Caml-list] Possible bug in DynArray module from ExtLib
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-04-03 (22:33)
From: ls-ocaml-developer-2006@m...
Subject: Re: [Caml-list] Possible bug in DynArray module from ExtLib

Florian Weimer <fw@deneb.enyo.de> writes:

> * Dário Abdulrehman:
>> The first of the following functions causes a "Fatal error: exception
>> Out_of_memory", while the second works fine.
>> This error seems to occur when creating large arrays with more than 2
>> million and something entries.
> The exponential resizer probably exceeds Ocaml's array length limit,
> while direct creation does not.

So a smarter resizer would be required: One which compares with the
array length limit and satisfies the request with that if necessary
and possible.

Regards -- Markus