Message322588
>> Commutativity guarantees can be delivered by sorting arguments before summation.
> No thanks -- that's too expensive for such a small payoff.
Since I don't really see people use this on vectors with hundreds of dimensions, let me still suggest using insertion sort. It's simple and short to implement into the current code (right in the first loop) and should be plenty fast for any reasonable usage of this function. |
|
Date |
User |
Action |
Args |
2018-07-28 20:27:19 | scoder | set | recipients:
+ scoder, tim.peters, rhettinger, mark.dickinson, steven.daprano, skrah, serhiy.storchaka |
2018-07-28 20:27:19 | scoder | set | messageid: <1532809639.42.0.56676864532.issue33089@psf.upfronthosting.co.za> |
2018-07-28 20:27:19 | scoder | link | issue33089 messages |
2018-07-28 20:27:19 | scoder | create | |
|