Message390247
| Author |
Guido.van.Rossum |
| Recipients |
Guido.van.Rossum, Mark.Shannon, rhettinger |
| Date |
2021年04月05日.18:44:58 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1617648298.28.0.969156131014.issue43693@roundup.psfhosted.org> |
| In-reply-to |
| Content |
To me it looks simpler though. The locals and cells are already stored in a single array, f_localsplus (which also contains the evaluation stack). There are various complications in ceval.c to translate cell indexes to indexes in this array (ein particular the extra local variable 'freevars', which weighs down the stack frame).
Making the interpreter simpler by moving things to the compiler also makes it easier for the C compiler to optimize the code of the interpreter better. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2021年04月05日 18:44:58 | Guido.van.Rossum | set | recipients:
+ Guido.van.Rossum, rhettinger, Mark.Shannon |
| 2021年04月05日 18:44:58 | Guido.van.Rossum | set | messageid: <1617648298.28.0.969156131014.issue43693@roundup.psfhosted.org> |
| 2021年04月05日 18:44:58 | Guido.van.Rossum | link | issue43693 messages |
| 2021年04月05日 18:44:58 | Guido.van.Rossum | create |
|