I made pip startup 25% faster (intermediate) anthony explains

  Рет қаралды 2,284

anthonywritescode

anthonywritescode

Күн бұрын

today I show how I tracked down a performance regression, how I fixed it, and ultimately how it made pip way faster!
what is git bisect: • finding regressions wi...
bisecting a performance regression in pytest: • pathlib is slow! false...
pretty profiling tools: • pretty python profilin...
speeding up python import time: • how I sped up python b...
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!

Пікірлер: 21
@godminete
@godminete 2 жыл бұрын
Another fantastic walkthrough, I really enjoy these breakdowns. Makes me wonder if a simple pytest plugin could be made to prevent these "catastrophic" import time regressions, especially for these packages that are widely depended on. Do you have a resource for reading the output of the profiling graph? I've always struggled to understand how they're supposed to be read.
@anthonywritescode
@anthonywritescode 2 жыл бұрын
yeah! I talk a little bit about self time vs cumulative time in the linked video in the description (that's honestly the most significant thing to look at most of the time)
@akshaymestry7503
@akshaymestry7503 2 жыл бұрын
Always something to learn... I know you have planned out a couple of things that you want to make videos upon, one suggestion... Can you please a dedicated playlist on topics like Git, Bash and Profiling? I know I know you have already created videos on those topics and you link the dependent videos below in the desc too... but what if there are dedicated vids for respective topics and there you teach us all the great stuff you do, stuffs like how you come up with bisecting a branch, how to name the branch correctly (pyparsing didn't have your usual branching nomenclature), your bash skills (my god! those are amazing!!!), stuffs with profiling, etc. What do you think about that? Please let me know. I have asked all my junior colleagues to watch your videos for learning and some of them are already impressed!
@anthonywritescode
@anthonywritescode 2 жыл бұрын
heh it's already a lot of work to maintain the current playlist -- I've been trying to think of ways to let users classify the current videos into separated lists and then have playlists like that -- but I already forget to properly assign the current set of videos, I'd surely forget when classifying more let me know if you have any thoughts on that as an idea and how someone might be able to contribute to that
@akshaymestry7503
@akshaymestry7503 2 жыл бұрын
@@anthonywritescode Can we (your subscribers) create and sort or arrange your vids into playlists? Let me know if I should do that for you. I'll check on youtube on how to do that.
@anthonywritescode
@anthonywritescode 2 жыл бұрын
it's possible to make personal playlists but not channel ones -- I would likely need to build something since youtube doesn't have fine-grained permissions to channels (basically it's "owner", "full access" or "official comments" only)
@Jakub1989YTb
@Jakub1989YTb 2 жыл бұрын
Maybe add another set of tags in the name of the video and then we may try youtube chanel search. I'm not sure, but maybe it searches description too? Those tags would then be added only in description.
@talalkalai8748
@talalkalai8748 2 жыл бұрын
Is there a way to disable pip from writing to cache, for the --no-cache-dir option only disables gettig from cache
@anthonywritescode
@anthonywritescode 2 жыл бұрын
that also should disable writes too -- it does so for me at least
@adramanov8941
@adramanov8941 2 жыл бұрын
Hi i need your advice i want to choose typing for returning __code__ of function, but cant find right typing for that, can you indicate where to look
@anthonywritescode
@anthonywritescode 2 жыл бұрын
should be `types.CodeType` github.com/python/typeshed/blob/693c4f19b495c810862dc196dba04bc548d22a8a/stdlib/builtins.pyi#L847
@adramanov8941
@adramanov8941 2 жыл бұрын
@@anthonywritescode thank you!
@tkm3ss10
@tkm3ss10 2 жыл бұрын
Thank you for doing god's work 🙌🙏🙌
@akshaymestry7503
@akshaymestry7503 2 жыл бұрын
Babi looks different now... did you change things? But way looks cooler than before!
@anthonywritescode
@anthonywritescode 2 жыл бұрын
lol I accidentally forgot to turn off a theme that got set by twitch chat with channel points
@akshaymestry7503
@akshaymestry7503 2 жыл бұрын
@@anthonywritescode so even god-tier beings forget things, interesting! 🤔
@xaro6132
@xaro6132 2 жыл бұрын
what is git bisect?
@anthonywritescode
@anthonywritescode 2 жыл бұрын
oh right -- meant to link that in the description thanks for the reminder! kzbin.info/www/bejne/eWOmaHmKfp2heJY
@xaro6132
@xaro6132 2 жыл бұрын
@@anthonywritescode oh video 026, thank you anthony :)
@Jakub1989YTb
@Jakub1989YTb 2 жыл бұрын
Video is good and all... that is to be expected by now :D .. but I need the 3:53 theme!!
@anthonywritescode
@anthonywritescode 2 жыл бұрын
hah -- it was set by iSatisfied in twitch chat -- here's a link to the theme github.com/wwmyers/hackpot/blob/master/themes/hackpot-batman-vs-joker-color-theme.json I forgot to turn it off after stream :P
how to use python backports + setup.py (intermediate) anthony explains #428
11:13
how I made my import sorter 7x faster (intermediate) anthony explains #457
15:37
IL'HAN - Qalqam | Official Music Video
03:17
Ilhan Ihsanov
Рет қаралды 700 М.
your tests should have 100% coverage
18:56
anthonywritescode
Рет қаралды 6 М.
I fixed my computer!
21:09
anthonywritescode
Рет қаралды 7 М.
10 Signs Your Software Project Is Heading For FAILURE
17:59
Continuous Delivery
Рет қаралды 38 М.
debugging and fixing pyuwsgi in python 3.12 (advanced) anthony explains #580
1:00:01
oops I'm the pyuwsgi maintainer now (intermediate) anthony explains #579
22:55
AI Is Making You An Illiterate Programmer
27:22
ThePrimeTime
Рет қаралды 258 М.
I deleted all my go projects.
11:17
anthonywritescode
Рет қаралды 14 М.
why don't signals work in docker?
12:30
anthonywritescode
Рет қаралды 7 М.