]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-119786: move adaptive interpreter doc from Python to InternalsDoc (#120137)
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>
Thu, 6 Jun 2024 10:56:58 +0000 (11:56 +0100)
committerGitHub <noreply@github.com>
Thu, 6 Jun 2024 10:56:58 +0000 (10:56 +0000)
InternalDocs/README.md
InternalDocs/adaptive.md [moved from Python/adaptive.md with 93% similarity]

index e69e27d1542990f91012f2d56ee088626744fb75..a2502fbf198735eeca6ad4f6f48cec9bf180d4f8 100644 (file)
@@ -14,3 +14,4 @@ it is not, please report that through the
 
 [Exception Handling](exception_handling.md)
 
+[Adaptive Instruction Families](adaptive.md)
similarity index 93%
rename from Python/adaptive.md
rename to InternalDocs/adaptive.md
index d978c089b237e04131050087d41739237568a8fe..09245730b271fa2dd4c9bf4093d3946b663e661f 100644 (file)
@@ -2,8 +2,9 @@
 
 ## Families of instructions
 
-The core part of PEP 659 (specializing adaptive interpreter) is the families
-of instructions that perform the adaptive specialization.
+The core part of [PEP 659](https://peps.python.org/pep-0659/)
+(specializing adaptive interpreter) is the families of
+instructions that perform the adaptive specialization.
 
 A family of instructions has the following fundamental properties:
 
@@ -30,8 +31,9 @@ although these are not fundamental and may change:
 
 ## Example family
 
-The `LOAD_GLOBAL` instruction (in Python/bytecodes.c) already has an adaptive
-family that serves as a relatively simple example.
+The `LOAD_GLOBAL` instruction (in
+[Python/bytecodes.c](https://github.com/python/cpython/blob/main/Python/bytecodes.c))
+already has an adaptive family that serves as a relatively simple example.
 
 The `LOAD_GLOBAL` instruction performs adaptive specialization,
 calling `_Py_Specialize_LoadGlobal()` when the counter reaches zero.