Message158442
> 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. |
|
Date |
User |
Action |
Args |
2012-04-16 13:25:29 | mark.dickinson | set | recipients:
+ mark.dickinson, pitrou, serhiy.storchaka, Robert.Elsner |
2012-04-16 13:25:29 | mark.dickinson | set | messageid: <1334582729.21.0.971857169377.issue14596@psf.upfronthosting.co.za> |
2012-04-16 13:25:28 | mark.dickinson | link | issue14596 messages |
2012-04-16 13:25:28 | mark.dickinson | create | |
|