Author mark.dickinson
Recipients Robert.Elsner, mark.dickinson, pitrou, serhiy.storchaka
Date 2012-04-16.13:25:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1334582729.21.0.971857169377.issue14596@psf.upfronthosting.co.za>
In-reply-to
Content
> It appears the storage of Struct instances is rather inefficient when 
> there's a repeat code such as "<48L"

Right.  Repeat counts aren't directly supported in the underlying PyStructObject;  a format string containing repeat counts is effectively 'compiled' to a series of (type, offset, size) triples before it can be used.  The caching is there to save repeated compilations when the same format string is used repeatedly.
History
Date User Action Args
2012-04-16 13:25:29mark.dickinsonsetrecipients: + mark.dickinson, pitrou, serhiy.storchaka, Robert.Elsner
2012-04-16 13:25:29mark.dickinsonsetmessageid: <1334582729.21.0.971857169377.issue14596@psf.upfronthosting.co.za>
2012-04-16 13:25:28mark.dickinsonlinkissue14596 messages
2012-04-16 13:25:28mark.dickinsoncreate