[pypy-dev] Python vs pypy: interesting performance difference [dict.setdefault]
Armin Rigo
arigo at tunes.org
Fri Aug 26 06:37:30 CEST 2011
Hi David,
On Thu, Aug 25, 2011 at 9:44 PM, David Naylor <naylor.b.david at gmail.com> wrote:
> Below is the patch, and results, for my proposed hash methods for
> datetime.datetime (and easily adaptable to include tzinfo and the other
> datetime objects). I tried to make the hash safe for both 32bit and 64bit
> systems, and beyond.
Yes, the patch looks good to me. I can definitely see how it can be a
huge improvement in performance :-)
If you can also "fix" the other __hash__ methods in the same way, it
would be great.
A bientôt,
Armin.
More information about the pypy-dev
mailing list