Optimization: How fast is your code?

  Рет қаралды 1,323

dr Jonas Birch

dr Jonas Birch

21 күн бұрын

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 күн бұрын
Wow! New intro ❤
@dr-Jonas-Birch
@dr-Jonas-Birch 19 күн бұрын
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 күн бұрын
Great ❤
@dr-Jonas-Birch
@dr-Jonas-Birch 19 күн бұрын
Thank you Aman and have a nice day. JB
@thenightwolf224
@thenightwolf224 19 күн бұрын
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 күн бұрын
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 күн бұрын
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 күн бұрын
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 күн бұрын
KZfaq, 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 KZfaq, 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 күн бұрын
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 күн бұрын
I need to optimize because I am writing the world's fastest in-memory database. JB
Project: Coding a #ash table from scratch, in C
1:26:21
dr Jonas Birch
Рет қаралды 1,2 М.
Python's 5 Worst Features
19:44
Indently
Рет қаралды 104 М.
Heartwarming Unity at School Event #shorts
00:19
Fabiosa Stories
Рет қаралды 21 МЛН
DAD LEFT HIS OLD SOCKS ON THE COUCH…😱😂
00:24
JULI_PROETO
Рет қаралды 15 МЛН
路飞被小孩吓到了#海贼王#路飞
00:41
路飞与唐舞桐
Рет қаралды 82 МЛН
10 weird algorithms
9:06
Fireship
Рет қаралды 1,2 МЛН
5 Signs of an Inexperienced Self-Taught Developer (and how to fix)
8:40
A Simpler Way to See Results
19:17
Logan Smith
Рет қаралды 101 М.
My Hacking Journey and Recommendations for Beginners
3:11
maksyche
Рет қаралды 5 М.
The World Depends on 60-Year-Old Code No One Knows Anymore
9:30
Coding with Dee
Рет қаралды 661 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 781 М.
100+ Linux Things you Need to Know
12:23
Fireship
Рет қаралды 873 М.
Premature Optimization
12:39
CodeAesthetic
Рет қаралды 775 М.
*Next-door 10x Software Engineer* [FULL]
4:50
Programmers are also human
Рет қаралды 405 М.
10 Math Concepts for Programmers
9:32
Fireship
Рет қаралды 1,8 МЛН