Oops, Skip's and Jeremy's approach already have their own PEP.
Reference those instead of trying to incorporate them.
This commit is contained in:
parent
55cc2cede8
commit
60f4699ff2
31
pep-0280.txt
31
pep-0280.txt
|
@ -2,7 +2,7 @@ PEP: 280
|
||||||
Title: Optimizing access to globals
|
Title: Optimizing access to globals
|
||||||
Version: $Revision$
|
Version: $Revision$
|
||||||
Last-Modified: $Date$
|
Last-Modified: $Date$
|
||||||
Author: skip@pobox.com, jeremy@alum.mit.edu, guido@python.org, tim.one@comcast.net,
|
Author: guido@python.org (Guido van Rossum)
|
||||||
Status: Draft
|
Status: Draft
|
||||||
Type: Standards Track
|
Type: Standards Track
|
||||||
Created: 10-Feb-2002
|
Created: 10-Feb-2002
|
||||||
|
@ -12,34 +12,17 @@ Post-History:
|
||||||
|
|
||||||
Abstract
|
Abstract
|
||||||
|
|
||||||
This PEP attempts to summarize various approaches for avoiding the
|
This PEP describes yet another approach to optimizing access to
|
||||||
dictionary lookup for accessing globals and built-ins in most
|
module globals, providing an alternative to PEP 266 (Optimizing
|
||||||
cases. There are several competing approaches, which originated
|
Global Variable/Attribute Access by Skip Montanaro) and PEP 267
|
||||||
in historical order by authors Montanaro, Hylton, and Van Rossum.
|
(Optimized Access to Module Namespaces by Jeremy Hylton).
|
||||||
The fourth author is added for his valuable feedback during all
|
|
||||||
stages.
|
|
||||||
|
|
||||||
The expectation is that eventually one approach will be picked and
|
The expectation is that eventually one approach will be picked and
|
||||||
implemented; possibly multiple approaches will be prototyped
|
implemented; possibly multiple approaches will be prototyped
|
||||||
first.
|
first.
|
||||||
|
|
||||||
|
|
||||||
Montanaro's approach: tracking globals
|
Description
|
||||||
|
|
||||||
XXX (Skip, please check in a description!).
|
|
||||||
|
|
||||||
|
|
||||||
Hylton's approach: using a dlict
|
|
||||||
|
|
||||||
XXX (Jerely, please check in a description!)
|
|
||||||
|
|
||||||
See Jeremy's Python10 DevDay slides at
|
|
||||||
http://www.python.org/~jeremy/talks/spam10/PEP-267-1.html
|
|
||||||
and his Wiki at
|
|
||||||
http://www.zope.org/Members/jeremy/CurrentAndFutureProjects/FastGlobals
|
|
||||||
|
|
||||||
|
|
||||||
Van Rossum's approach: using a celldict
|
|
||||||
|
|
||||||
(Note: Jason Orendorff writes: """I implemented this once, long
|
(Note: Jason Orendorff writes: """I implemented this once, long
|
||||||
ago, for Python 1.5-ish, I believe. I got it to the point where
|
ago, for Python 1.5-ish, I believe. I got it to the point where
|
||||||
|
@ -226,4 +209,4 @@ Van Rossum's approach: using a celldict
|
||||||
|
|
||||||
Comparison
|
Comparison
|
||||||
|
|
||||||
XXX Here, a comparison of the three approaches should be added.
|
XXX Here, a comparison of the three approaches could be added.
|
||||||
|
|
Loading…
Reference in New Issue