3 ms·
The author shows a micro benchmark in which the state of the generator is a single variable and discuss the history of generators from the first tier (interpret
by barbudorojo 12y ago
The author shows a micro benchmark in which the state of the generator is a single variable and discuss the history of generators from the first tier (interpreter code) to the second tier (using the Jit). Perhaps some more complete examples with should be analyzed since the case discussed here seems to be the simplest and so the 22 times faster perhaps doesn't hold except in very simple cases.
- lucian1900 12y agoThe benchmark is mostly superfluous anyway. It's enough for me to know that generators no longer bail out to the interpreter.