Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Buffer.add error
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] Buffer.add error
> > So basically, you are hitting the limits of maximal string size (which
> > is 2^24 = 16777216 on 32 bits plateform).
> > 
> > Hence you cannot avoid it, except by switching to a 64 bits plateform.
> 
> Another possibility is to write a Buffer implementation on top of
> Bigarrays.  That way your application wouldn't have to change much.

But you'd still hit the limit on string length when extracting the
contents of the buffer with Buffer.contents...

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