PEP 509: fix typos reported by Jim J. Jewett
This commit is contained in:
parent
5d9f3b27d8
commit
ec95a9ac51
|
@ -128,7 +128,7 @@ Core runtime).
|
|||
Unladen Swallow
|
||||
---------------
|
||||
|
||||
Even if dictionary version was not explicitly mentionned, optimization
|
||||
Even if dictionary version was not explicitly mentioned, optimization
|
||||
globals and builtins lookup was part of the Unladen Swallow plan:
|
||||
"Implement one of the several proposed schemes for speeding lookups of
|
||||
globals and builtins." Source: `Unladen Swallow ProjectPlan
|
||||
|
@ -212,7 +212,7 @@ On pybench and timeit microbenchmarks, the patch does not seem to add
|
|||
any overhead on dictionary operations.
|
||||
|
||||
When the version does not change, ``PyDict_GetItem()`` takes 14.8 ns for
|
||||
a dictioanry lookup, whereas a guard check only takes 3.8 ns. Moreover,
|
||||
a dictionary lookup, whereas a guard check only takes 3.8 ns. Moreover,
|
||||
a guard can watch for multiple keys. For example, for an optimization
|
||||
using 10 global variables in a function, 10 dictionary lookups costs 148
|
||||
ns, whereas the guard still only costs 3.8 ns when the version does not
|
||||
|
|
Loading…
Reference in New Issue