They made Python faster with this compiler option

Sdílet
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

Komentáře • 17

  • @hnasr
    @hnasr  Před měsícem +7

    Fundamentals of Operating Systems course oscourse.win

    • @prasenjitsutradhar3368
      @prasenjitsutradhar3368 Před 17 dny +1

      👋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!🙏

  • @a.yashwanth
    @a.yashwanth Před měsícem +18

    Never seen a recommendation for a video that was released 6 seconds ago.

  • @minefacex
    @minefacex Před měsícem +6

    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

  • @vladislavkaras491
    @vladislavkaras491 Před měsícem +3

    Thanks for the explanation about compilers!

  • @rubensystems2309
    @rubensystems2309 Před měsícem +2

    Inlining also helps the application of further optimisations at the call site, like those discussed in your -O1 pass.

  • @mr_hse5364
    @mr_hse5364 Před měsícem +2

    Thanks! Compiled python many times, but didn't know about such things) really interesting)

  • @tibbydudeza
    @tibbydudeza Před měsícem +3

    They need to do extensive testing and validation before shipping it - there could be subtle side effects that is not so obvious.

  • @slappy_chimp
    @slappy_chimp Před měsícem

    I can't appreciate this channel just enough man 🥺
    my little frontend oriented brain is happy with the way you explain stuff

  • @jose49716
    @jose49716 Před měsícem +7

    Uoh, what a clickbait. You could have included ONLY IN FEDORA in the title xd

  • @talalahmed6420
    @talalahmed6420 Před 27 dny +1

    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?

  • @thetechconsultant
    @thetechconsultant Před měsícem

    Can you please make a video on the importance of SARGable Queries?

  • @DaniDipp
    @DaniDipp Před měsícem +1

    thanks for the insightful video, but please use a less fancy font next time (maybe even a monospace one)

  • @zoenagy9458
    @zoenagy9458 Před měsícem

    took them long enough to discover it

  • @buzdi_dop
    @buzdi_dop Před měsícem

    Hi, are you the one that made an elfpack?

  • @stevelearningnote
    @stevelearningnote Před měsícem +2

    にほんっごができますか。

  • @elmehdisaniss2347
    @elmehdisaniss2347 Před měsícem

    it is what it is 😂😂😂