[Python-Dev] Re: Speeding up CPython

2020年10月22日 04:56:58 -0700

Hi Nathaniel,
On 22/10/2020 7:36 am, Nathaniel Smith wrote:
Hi Mark,
This sounds really cool. Can you give us more details? Some questions that occurred to me while reading: - You're suggesting that the contractor would only be paid if the desired 50% speedup is achieved, so I guess we'd need some objective Python benchmark that boils down to a single speedup number. Did you have something in mind for this?
- How much of the work has already been completed?
A fair bit of stage 1, and much research and design for the later stages.
- Do you have any preliminary results of applying that work to that benchmark? Even if it's preliminary, it would still help a lot in making the case for this being a realistic plan.
Getting a PGO/LTO comparison against 3.10 is tricky.
Mainly because I'm relying on merging a bunch of patches and expecting it to work :) However, on a few simple benchmarks I'm seeing about a 70% speedup vs master for both default and LTO configures. I would expect a lower speedup on a wider range of benchmarks with a PGO/LTO build. But 50% is definitely achievable.
Cheers,
Mark.
-n
On Tue, Oct 20, 2020 at 6:00 AM Mark Shannon <[email protected] <mailto:[email protected]>> wrote:
 Hi everyone,
 CPython is slow. We all know that, yet little is done to fix it.
 I'd like to change that.
 I have a plan to speed up CPython by a factor of five over the next few
 years. But it needs funding.
 I am aware that there have been several promised speed ups in the past
 that have failed. You might wonder why this is different.
 Here are three reasons:
 1. I already have working code for the first stage.
 2. I'm not promising a silver bullet. I recognize that this is a
 substantial amount of work and needs funding.
 3. I have extensive experience in VM implementation, not to mention a
 PhD in the subject.
 My ideas for possible funding, as well as the actual plan of
 development, can be found here:
 https://github.com/markshannon/faster-cpython
 I'd love to hear your thoughts on this.
 Cheers,
 Mark.
 _______________________________________________
 Python-Dev mailing list -- [email protected]
 <mailto:[email protected]>
 To unsubscribe send an email to [email protected]
 <mailto:[email protected]>
 https://mail.python.org/mailman3/lists/python-dev.python.org/
 Message archived at
 
https://mail.python.org/archives/list/[email protected]/message/RDXLCH22T2EZDRCBM6ZYYIUTBWQVVVWH/
 Code of Conduct: http://python.org/psf/codeofconduct/
--
Nathaniel J. Smith -- https://vorpus.org <http://vorpus.org>
_______________________________________________
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/TZ2YNUJPOBX4R6LEUESCP6WVTGPT5KQL/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to