dynamic allocation file buffer

Steven D'Aprano steven at REMOVE.THIS.cybersource.com.au
Wed Sep 10 06:24:29 EDT 2008


On Wed, 10 Sep 2008 09:26:20 +0200, Fredrik Lundh wrote:

> Steven D'Aprano wrote:
> 
>> You've created a solution to a problem which (probably) only affects a
>> very small number of people, at least judging by your use-cases. Who
>> has a 4GB XML file
> 
> Getting 4GB XML files from, say, logging processes or databases that can
> render their output as XML is not that uncommon.  They're usually
> record-oriented, and are intended to be processed as streams.  And given
> the right tools, doing that is no harder than doing the same to a 4GB
> text file.


Fair enough, that's a good point.

But would you expect random access to a 4GB XML file? If I've understood 
what Castironpi is trying for, his primary use case was for people 
wanting exactly that.


-- 
Steven



More information about the Python-list mailing list