Avoid expensive pformating in DynamicStructure.unpack_stream unless required.
authorW. Trevor King <wking@tremily.us>
Sat, 21 Jul 2012 11:56:49 +0000 (07:56 -0400)
committerW. Trevor King <wking@tremily.us>
Sat, 21 Jul 2012 11:56:49 +0000 (07:56 -0400)
commitffb4b3eb3de75f53a92cbfe16473ab8c1461ea94
tree32779017ef173d74068832b929405f62064319f6
parentfe7006e3e2d741b6d80767b1aac53394ff1e7e76
Avoid expensive pformating in DynamicStructure.unpack_stream unless required.

If we're not going to be printing the formatted data in the log, don't
bother calculating it.  On my system, this speeds up the loading of
polar-graphs-demo.pxp by a factor of 10.
igor/struct.py