[SciPy-User] [Numpy-discussion] Fastest way to parsing a specific binay file

Sturla Molden sturla at molden.no
Wed Sep 2 11:34:36 EDT 2009


Gökhan Sever skrev:
> What would be wisest and fastest way to tackle this issue? 
Get the format, read the binary data directly, skip the ascii/regex part.

I sometimes use recarrays with formatted binary data; just constructing 
a dtype and use numpy.fromfile to read. That works when the binary file 
store C structs written successively.

Sturla Molden





More information about the SciPy-User mailing list