reading binary data fast / help with optimizing ( again )

Thomas Weholt 2002 at weholt.org
Mon May 6 07:58:01 EDT 2002


Just a comment :

>         result.append(unpack(fmt, _data[start_pos:stop_pos]))

The unpack-method found in the struct-module seem to be the bottleneck in my
code. Is there another way to read/write binary data to/from disk in a
similar fashion without using struct?

Since I didn't find any struct.py module in my python distro I guess its a
C-based module compiled into a lib somewhere. Has it been optimized?

Still almost clueless, but hopefull
Thomas Weholt






More information about the Python-list mailing list