No video

what is inlining? and how does it make code faster? (intermediate) anthony explains

  Рет қаралды 3,450

anthonywritescode

anthonywritescode

Күн бұрын

today I introduce the concept of "inlining" and how an optimizing compiler can use it to make code faster!
playlist: • anthony explains
==========
twitch: / anthonywritescode
dicsord: / discord
twitter: / codewithanthony
github: github.com/aso...
stream github: github.com/ant...
I won't ask for subscriptions / likes / comments in videos but it really helps the channel. If you have any suggestions or things you'd like to see please comment below!

Пікірлер: 8
@raidoung4100
@raidoung4100 2 ай бұрын
Anthony, you just jumped right to the answer i was looking for, it's an instant subscribe ;)))
@DavidDellsperger
@DavidDellsperger 2 жыл бұрын
it's funny when Anthony sees a red squiggle and ignores it
@MrMongoosesRawesome
@MrMongoosesRawesome 2 жыл бұрын
If python doesn't support inlining, how were you using it (as you mentioned at the top of the video)? Do you just mean instead of creating a function just having code without a function call?
@anthonywritescode
@anthonywritescode 2 жыл бұрын
I use the term to mean a lot of things like "this isn't a useful function, I would just inline it" -- like literally writing the source in the function instead of having a separate one
@jimratliff
@jimratliff 2 жыл бұрын
"Premature optimization is the root of all evil." - Donald Knuth
@JohnZakaria
@JohnZakaria 2 жыл бұрын
Why not inline everything, if it sounds so great?
@anthonywritescode
@anthonywritescode 2 жыл бұрын
it balloons code size, and in many cases would make the code slower (since it has to ~emulate scoping and such and would need a bunch of setup / teardown anyway). also you wouldn't be able to call external shared objects!
@anthonywritescode
@anthonywritescode 2 жыл бұрын
(though yes, there is lto which can enable some optimizations from shared objects)
finding and fixing test pollution! (intermediate) anthony explains #401
11:50
Они так быстро убрались!
01:00
Аришнев
Рет қаралды 3,2 МЛН
👨‍🔧📐
00:43
Kan Andrey
Рет қаралды 10 МЛН
WHO CAN RUN FASTER?
00:23
Zhong
Рет қаралды 42 МЛН
Little brothers couldn't stay calm when they noticed a bin lorry #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 18 МЛН
py-spy saved our python 3.11 rollout (intermediate) anthony explains #568
13:48
Makefiles: 95% of what you need to know
1:01:53
Gabriel Parmer
Рет қаралды 119 М.
typing the untype-able with mypy plugins (advanced) anthony explains #574
25:06
Advanced C: The UB and optimizations that trick good programmers.
1:12:34
Eskil Steenberg
Рет қаралды 166 М.
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 965 М.
How to NOT Fail a Technical Interview
8:26
Fireship
Рет қаралды 1,4 МЛН
Они так быстро убрались!
01:00
Аришнев
Рет қаралды 3,2 МЛН