They made Python faster with this compiler option
Vložit
- čas přidán 15. 06. 2024
- Fundamentals of Operating Systems Course
oscourse.win
Looks like fedora is compiling cpython with the -o3 flag, which does aggressive function inlining among other optimizations.
This seems to improve python benchmarks performance by at most 1.16x at a cost of an extra 3MB in binary size (text segment). Although it does seem to slow down some benchmarks as well though not significantly.
O1 - local register allocation, subexpression elimination
O2 - Function inlining only small functions
O3 - Agressive inlining, SMID
0:00 Intro
1:00 Fedora Linux gets Fast Python
5:40 What is Compiling?
9:00 Compiling with No Optimization
12:10 Compiling with -O1
15:30 Compiling with -O2
20:00 Compiling with -O3
23:20 Showing Numbers
Backend Troubleshooting Course
performance.husseinnasser.com
Fundamentals of Backend Engineering (link redirects to udemy with coupon)
backend.husseinnasser.com
Fundamentals of Networking for Effective Backends udemy course (link redirects to udemy with coupon)
network.husseinnasser.com
Fundamentals of Database Engineering udemy course (link redirects to udemy with coupon)
database.husseinnasser.com
Follow me on Medium
/ membership
Introduction to NGINX (link redirects to udemy with coupon)
nginx.husseinnasser.com
Python on the Backend (link redirects to udemy with coupon)
python.husseinnasser.com
Become a Member on CZcams
/ @hnasr
Buy me a coffee if you liked this
www.buymeacoffee.com/hnasr
Arabic Software Engineering Channel
/ @husseinnasser
🔥 Members Only Content
• Members-only videos
🏭 Backend Engineering Videos in Order
backend.husseinnasser.com
💾 Database Engineering Videos
• Database Engineering
🎙️Listen to the Backend Engineering Podcast
husseinnasser.com/podcast
Gears and tools used on the Channel (affiliates)
🖼️ Slides and Thumbnail Design
Canva
partner.canva.com/c/2766475/6...
Stay Awesome,
Hussein - Věda a technologie
Fundamentals of Operating Systems course oscourse.win
👋Hi everone, I'm a non-cs graduate (coming from Math major background), I've software development knowledge in NodeJS, Java, Spring Boot. But I never went though any formal operating system course before and now I want to learn about operating systems, both for my own development and for potential interview situations.. Should I take Hussein's OS course or I should take any university OS course?.............Pls any help me out!🙏
Never seen a recommendation for a video that was released 6 seconds ago.
I know a lot about these topics and I have to say you are really good at explaining it like I was 5, which means you understand stuff well, so well done
Thanks for the explanation about compilers!
Inlining also helps the application of further optimisations at the call site, like those discussed in your -O1 pass.
Thanks! Compiled python many times, but didn't know about such things) really interesting)
They need to do extensive testing and validation before shipping it - there could be subtle side effects that is not so obvious.
I can't appreciate this channel just enough man 🥺
my little frontend oriented brain is happy with the way you explain stuff
Uoh, what a clickbait. You could have included ONLY IN FEDORA in the title xd
I have a question here, so the vector addition you mentioned is done in GPU kind of architecture how they are doing this with CPU, are they creating threads or process and sending it into different cores?
Can you please make a video on the importance of SARGable Queries?
thanks for the insightful video, but please use a less fancy font next time (maybe even a monospace one)
took them long enough to discover it
Hi, are you the one that made an elfpack?
にほんっごができますか。
it is what it is 😂😂😂