Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Dev

Re: cpython: Move make_key() out of the decorator body. Make keys that only need to be

 

 

Python dev RSS feed   Index | Next | Previous | View Threaded


solipsis at pitrou

May 1, 2012, 3:37 AM

Post #1 of 1 (74 views)
Permalink
Re: cpython: Move make_key() out of the decorator body. Make keys that only need to be

On Tue, 01 May 2012 07:32:36 +0200
raymond.hettinger <python-checkins [at] python> wrote:
> http://hg.python.org/cpython/rev/f981fe3b8bf7
> changeset: 76681:f981fe3b8bf7
> user: Raymond Hettinger <python [at] rcn>
> date: Mon Apr 30 22:32:16 2012 -0700
> summary:
> Move make_key() out of the decorator body. Make keys that only need to be hashed once.

How does it work? A new _CacheKey instance is created at each cache
lookup anyway.

Regards

Antoine.


_______________________________________________
Python-Dev mailing list
Python-Dev [at] python
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: http://mail.python.org/mailman/options/python-dev/list-python-dev%40lists.gossamer-threads.com

Python dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.