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
|
||||
Version: $Revision$
|
||||
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
|
||||
Type: Standards Track
|
||||
Created: 10-Feb-2002
|
||||
|
@ -12,34 +12,17 @@ Post-History:
|
|||
|
||||
Abstract
|
||||
|
||||
This PEP attempts to summarize various approaches for avoiding the
|
||||
dictionary lookup for accessing globals and built-ins in most
|
||||
cases. There are several competing approaches, which originated
|
||||
in historical order by authors Montanaro, Hylton, and Van Rossum.
|
||||
The fourth author is added for his valuable feedback during all
|
||||
stages.
|
||||
This PEP describes yet another approach to optimizing access to
|
||||
module globals, providing an alternative to PEP 266 (Optimizing
|
||||
Global Variable/Attribute Access by Skip Montanaro) and PEP 267
|
||||
(Optimized Access to Module Namespaces by Jeremy Hylton).
|
||||
|
||||
The expectation is that eventually one approach will be picked and
|
||||
implemented; possibly multiple approaches will be prototyped
|
||||
first.
|
||||
|
||||
|
||||
Montanaro's approach: tracking globals
|
||||
|
||||
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
|
||||
Description
|
||||
|
||||
(Note: Jason Orendorff writes: """I implemented this once, long
|
||||
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
|
||||
|
||||
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