Optimization: How fast is your code?

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ค. 2024
  • In this video you will learn the answer to the question: How fast is your code, really? Before you can do any kind of optimization, you will need to know that. And this episode gives you the tools.
    #programming #optimization
    References:
    Ep 01, Designing your own database
    • Designing your own Dat...
    Ep 02, Coding a binary tree
    • Project: Coding your o...
    Ep 03, Coding a pretty-printer
    • Project: Coding a Pret...
    And this is ep 04 in the series of
    data structures & related stuff.
    JB

ความคิดเห็น • 37

  • @ArnabJhaYT
    @ArnabJhaYT 19 วันที่ผ่านมา +2

    Wow! New intro ❤

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  19 วันที่ผ่านมา +1

      Thank you friend, Yes I thought it suitable for the measuring and stuff. But I kept the small intro too :) JB

  • @AmanKumar-jk1qu
    @AmanKumar-jk1qu 19 วันที่ผ่านมา +1

    Great ❤

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  19 วันที่ผ่านมา

      Thank you Aman and have a nice day. JB

  • @thenightwolf224
    @thenightwolf224 19 วันที่ผ่านมา +1

    Nice Video Mate

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  19 วันที่ผ่านมา

      Thank you wolf, take care. JB

  • @eduardofernandes7707
    @eduardofernandes7707 16 วันที่ผ่านมา

    When are you going to finish the file encryption project? Amazing videos by the way.

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  15 วันที่ผ่านมา

      Thank you very much Ed, Im happy you like my stuff. I will finish it soon, only the decrypter left iirc. The only problem is I have sooo many ideas, and I wanna do them all at once :D but in a couple of weeks tops, I promise. Have a wonderful day man, JB

  • @angelffg
    @angelffg 19 วันที่ผ่านมา

    Hello Jonas, nice to greet you. Excellent content. Thanks for sharing.
    I have a question please: I understand that gcc converts the source code into machine code optimized for the processor of the computer where you are compiling. Is this correct ?
    If the above is correct, compiling a program on a computer will always run faster than installing its binaries or executables, right?
    I know that compiling a commercial program for each computer is a big task, but for Open Source projects, if we want to obtain the greatest speed, is it convenient to compile the source code instead of installing it from a package? Example .DEB
    Thank you!

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  19 วันที่ผ่านมา +2

      Thank you, my friend. And yes, you have understood everything correctly, and you are right - in principle. In practice though, there is very tiny differences from computer to computer, because of how similar the cpus are and the standardized nature of the linux distributions (libs, kernel configs etc) so I would say its basically equally fast using .deb or .rpm. Unless the program you use makes use of a very recent cpu instruction of a new cpu feature in the latest model. JB

    • @angelffg
      @angelffg 19 วันที่ผ่านมา

      @@dr-Jonas-Birch Thanks Jonas for responding.
      A hug!

  • @i_youtube_
    @i_youtube_ 19 วันที่ผ่านมา +1

    We need a full video on how did you learn C, recommended resources, how to keep learning, how to master difficult concepts, and other important advices. Thank you so much ❤

    • @yashkumarkasaudhan1354
      @yashkumarkasaudhan1354 19 วันที่ผ่านมา +1

      actually i just want to tell you that creating the whole c course from start will not help your difficult concepts or make you feel confident. if you just try to create and learn something by developing projects, it will help you in the perfect way. as when you develop project you learn the applications of the programming language and get to more about its working. because if you see that watching the course is boring. you will loose the track after a month. so knowing the basics and trying to develop the projects that @dr-Jonas-Birch is creating will help you learn more.
      NOTE: "ENGINEER"S LEARN MORE FROM ERRORS THAN THEORY", for me this note is perfectly valid.
      so in summary i just want to say that: ask for projects courses so that begineer's can also participate in that.

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  19 วันที่ผ่านมา +3

      TH-cam, Yash is right, you know. I can make a video like that to describe my journey just as an inspiration but first Im gonna give you a project for you to do. Answer me this, though: in addition to coding, what in life are you passionate about? (like an interest, sport, religion, stamps collecting, etc)?
      JB

    • @i_youtube_
      @i_youtube_ 19 วันที่ผ่านมา

      @@dr-Jonas-BirchMain goal is to build my own tech startup.
      I am passionate about reading all things about entrepreneurship, marketing, productivity, computer science, DS, SWE, and AI.

    • @yashkumarkasaudhan1354
      @yashkumarkasaudhan1354 18 วันที่ผ่านมา

      @@i_youtube_ wow nice to see that you want your own tech startup. So, according to your study and observations what you think the best product you can bring to the market. atleast don't tell the real one. but you can tell something that is similar to your idea. because if your interest is to settle for the market than i am pretty sure you won't even love to go deep into the world of programming. because it totally different world. So just learn what's important for your company.
      See you can't master the whole CS, DS, or AI they all have different but very vast background.
      So tell us precisely what you want to work on and how you want to learn.

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  18 วันที่ผ่านมา

      @@i_youtube_ These are interesting subjects, indeed. Perhaps you should take a look at my content about the stock market? Some of the ep:s are freely available here on TH-cam, and some only on Udemy. JB

  • @yashkumarkasaudhan1354
    @yashkumarkasaudhan1354 19 วันที่ผ่านมา

    could you please work on the video audio please. your audio is not clear i have to use the earphones to work with. because as i have to use subtitle and also try to manage the audio, it become difficult to focus on the video content.

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  19 วันที่ผ่านมา +2

      Ok yash, I will take care of it. JB

  • @araz911
    @araz911 13 วันที่ผ่านมา

    your code is 10 lines of code😂😂😂😂😂😂😂why do you need optimize 😂😂😂😂😊😂😊😂😂😂
    (🐓👊btw check your linux kernel it's full of spyware, recent backdoors made it run programs slower)😉😉😉😉😉😉

    • @dr-Jonas-Birch
      @dr-Jonas-Birch  13 วันที่ผ่านมา +1

      I need to optimize because I am writing the world's fastest in-memory database. JB