Rich is a Python library for rich text and beautiful formatting in the terminal.
perf(console): avoid call to inspect.stack
This change improves the performance of the `Console.log` method by avoiding an expensive call to `stack()` and using `currentframe` instead. The same information is then available by navigating backward as many levels as required and peeking at the `code` object.
G
Gabriele N. Tornetta committed
efa324a5942c003cb1e3cb273cfc8f363e8647c5
Parent: ce4f18c
Committed by Gabriele N. Tornetta <phoenix1987@gmail.com>
on 6/5/2021, 4:50:02 PM