Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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