Message169388
I'm trying to think of an optimization for the native types. It should
be possible to cast any native type element to unsigned char and use the
truncated value for the bytes hash.
Well, for double probably it's required to go from double -> int64_t ->
unsigned char, otherwise the first cast is technically undefined for
negative values, though it works with gcc.
For non-native types and compound types, Nick's suggestion of
hashing the shape and a couple of values seems to be the best
solution.
Should we do anything about this before 3.3.0? |
|
Date |
User |
Action |
Args |
2012-08-29 15:23:07 | skrah | set | recipients:
+ skrah, loewis, georg.brandl, mark.dickinson, ncoghlan, pitrou, vstinner, christian.heimes, Arfrever, meador.inge, python-dev |
2012-08-29 15:23:07 | skrah | set | messageid: <1346253787.31.0.656002715342.issue15573@psf.upfronthosting.co.za> |
2012-08-29 15:23:06 | skrah | link | issue15573 messages |
2012-08-29 15:23:06 | skrah | create | |
|