How to efficiently read binary files?
Grant Edwards
grante at visi.com
Sun Apr 30 17:54:22 EDT 2006
On 2006-04-30, David Lees <debl2NoSpam at verizon.net> wrote:
> I want to process large binary files (>2GB) in Python. I have played
> around with prototypes in pure Python and profiled the code. Most of
> the time seems to be spent converting back and forth to and from strings
> using the struct module. Is there a way to directly read into an array
> of integers in Python?
Perhaps the numarray module?
--
Grant Edwards
grante at visi.com
More information about the Python-list
mailing list