Serhiy Storchaka added the comment: So what about more compact Struct object? This is not only memory issue (a Struct object can require several times larger memory than size of processed data), but performance issue (time of creating such object is proportional to it's size).
Here is a patch with updated __sizeof__ method and tests. ---------- Added file: http://bugs.python.org/file30194/struct_repeat_2.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue14596> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com