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] Buffer.add error
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-01-09 (20:34)
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