Message223078
Of course pickles come with overheads too - don't be tedious ;-) The point is that the guts of the datetime pickling is this:
basestate = PyBytes_FromStringAndSize((char *)self->data,
_PyDateTime_DATETIME_DATASIZE);
That consumes exactly 10 bytes today. Add nanoseconds, and it will take at least 11 (if 4 bits are insanely squashed into the bytes currently devoted to microseconds), and more likely 12 (if nanoseconds are sanely given their own 2 bytes). I suppose another possibility is to get rid of microseconds internally, and work with a single 4-byte nanosecond member. |
|
Date |
User |
Action |
Args |
2014-07-15 02:53:41 | tim.peters | set | recipients:
+ tim.peters, lemburg, belopolsky, pitrou, vstinner, Arfrever, r.david.murray, andrewclegg, Ramchandra Apte, goshawk, Niklas.Claesson |
2014-07-15 02:53:41 | tim.peters | set | messageid: <1405392821.23.0.851273600966.issue15443@psf.upfronthosting.co.za> |
2014-07-15 02:53:41 | tim.peters | link | issue15443 messages |
2014-07-15 02:53:40 | tim.peters | create | |
|