[Python-Dev] Re: PEP 626: Precise line numbers for debugging and other tools.

2020年7月21日 12:23:25 -0700

On Tue, Jul 21, 2020 at 11:46 AM Mark Shannon <[email protected]> wrote:
> On 18/07/2020 9:20 am, Inada Naoki wrote:
> > And I am worrying precise tracing blocks future advanced bytecode
> optimization.
> > Can we omit precise tracing and line number information when
> > optimization (`-O`) is enabled?
>
> I don't think that is a good idea.
> Performing any worthwhile performance optimization requires that we can
> reason about the behavior of programs.
> Consistent behavior makes that much easier.
> Inconsistent "micro optimizations" make real optimizations harder.
>
Echoing what Mark said, there should be no perceived tension between
debugging and optimization. For over 20 years the JVM has been the
existence proof: Java is always precisely debuggable when the compiler is
generating code at the highest optimization levels. IMHO, a Python user
shouldn't have to expect anything less.
_______________________________________________
Python-Dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-dev.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/N2YEEYX5TVWLD3OAXTGMW77VSOCAIYVN/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to