PEP 659: Correct minor grammar mistakes (#2857)

PEP 659: correct minor grammar mistakes

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Maik Riechert 2023-06-06 13:40:16 +01:00 committed by GitHub
parent ef64ec3cbe
commit d6287c5fc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -104,7 +104,7 @@ depend on other optimizations. Speedups seem to be in the range 10% - 60%.
* Most of the speedup comes directly from specialization. The largest
contributors are speedups to attribute lookup, global variables, and calls.
* A small, but useful, fraction is from from improved dispatch such as
* A small, but useful, fraction is from improved dispatch such as
super-instructions and other optimizations enabled by quickening.
Implementation
@ -127,9 +127,9 @@ Quickening
Quickening is the process of replacing slow instructions with faster variants.
Quickened code has number of advantages over immutable bytecode:
Quickened code has a number of advantages over immutable bytecode:
* It can be changed at runtime
* It can be changed at runtime.
* It can use super-instructions that span lines and take multiple operands.
* It does not need to handle tracing as it can fallback to the original
bytecode for that.
@ -185,7 +185,7 @@ Example families of instructions
LOAD_ATTR
'''''''''
The ``LOAD_ATTR`` loads the named attribute of the object on top of the stack,
The ``LOAD_ATTR`` instruction loads the named attribute of the object on top of the stack,
then replaces the object on top of the stack with the attribute.
This is an obvious candidate for specialization. Attributes might belong to