This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author serhiy.storchaka
Recipients Serge Anuchin, mark.dickinson, pitrou, r.david.murray, rhettinger, serhiy.storchaka, skrah, steven.daprano, tim.peters, vstinner
Date 2015-07-16.19:34:45
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1437075286.11.0.0806731771722.issue24567@psf.upfronthosting.co.za>
In-reply-to
Content
See the attached timings for sample().  Patched sample2 is at worst 4% slower than original sample, and optimized sample3 is between sample and sample2. In any case the difference is pretty small, so I'm good with Raymond's variant if it looks better for him.

Please note that 3.x also needs the patch.
History
Date User Action Args
2015-07-16 19:34:46serhiy.storchakasetrecipients: + serhiy.storchaka, tim.peters, rhettinger, mark.dickinson, pitrou, vstinner, steven.daprano, r.david.murray, skrah, Serge Anuchin
2015-07-16 19:34:46serhiy.storchakasetmessageid: <1437075286.11.0.0806731771722.issue24567@psf.upfronthosting.co.za>
2015-07-16 19:34:46serhiy.storchakalinkissue24567 messages
2015-07-16 19:34:45serhiy.storchakacreate