abhi9u Profile Banner
Abhinav Upadhyay Profile
Abhinav Upadhyay

@abhi9u

Followers
17K
Following
18K
Media
626
Statuses
14K

NetBSD Dev | Python Internals, AI, compilers, databases, & performance engineering | Join 13k+ other readers at https://t.co/OQfxW0443i

Joined July 2009
Don't wanna be here? Send us removal request.
@abhi9u
Abhinav Upadhyay
7 days
People talk about profiling to find bottlenecks, but no one explains how to fix them. Many devs shoot in the dark and when the optimization backfires, they aren't sure how to proceed. This is where you wish for a theory to systematically reason about the optimizations so that
Tweet media one
1
20
154
@abhi9u
Abhinav Upadhyay
1 day
The more oop you write, the more poop you get. Try for yourself: oopoopoop.
@forked_franz
Francesco Nigro
1 day
@cmuratori Still too similar to poop, to me 👿.
0
1
18
@abhi9u
Abhinav Upadhyay
1 day
TIL: The earliest example of computational complexity is from 1844 when Lamé studied worst case complexity of Euclid's algorithm for computing GCD.
Tweet media one
1
0
41
@abhi9u
Abhinav Upadhyay
2 days
The rivalry between Knuth and Douglas McIlroy is well known. While McIlroy favoured real-world implementation, Knuth was known for mathematical and algorithmic elegance. When asked to implement a program to list the most frequent words in a file, Knuth wrote a 10-page program
Tweet media one
4
18
144
@abhi9u
Abhinav Upadhyay
3 days
RT @BengaluruSys: Bengaluru Systems is proud to partner with @fifthel and @abhi9u @anscombes4tet @Aditi_ahj on this fantastic workshop - if….
0
8
0
@abhi9u
Abhinav Upadhyay
6 days
My north star for choosing topics is their (relative) uniqueness, and this one is probably the most original piece I've ever written. The idea itself is not new but the angle of holistically analyzing various optimizations is something i've not seen anywhere else.
@abhi9u
Abhinav Upadhyay
7 days
People talk about profiling to find bottlenecks, but no one explains how to fix them. Many devs shoot in the dark and when the optimization backfires, they aren't sure how to proceed. This is where you wish for a theory to systematically reason about the optimizations so that
Tweet media one
1
0
16
@abhi9u
Abhinav Upadhyay
7 days
Errata: Also, increased penalty on cache misses and branch misses increases the CPI (and lowers IPC). I reversed the direction. Again, all of this is correctly explained in the article.
0
0
2
@abhi9u
Abhinav Upadhyay
7 days
Errata: In the first post I meant to write performance = 1 / (instruction count x cycles per instruction x cycle time). I mistakenly wrote instructions per cycle (IPC) instead of cycles per instruction.
Tweet media one
1
0
5
@abhi9u
Abhinav Upadhyay
7 days
This article is made available to everyone thanks to a sponsorship from .@coderabbitai. CodeRabbit is your AI co-pilot for code reviews. It instantly comments on pull requests, suggests one-click fixes, and catches subtle issues using custom AST Grep rules. Free for all.
1
0
8
@abhi9u
Abhinav Upadhyay
8 days
RT @mgill25: @MoHFW_INDIA @JPNadda My mom is a retired govt. employee who recently retired, got diagnosed with Cancer. Your useless govt.….
0
5
0
@abhi9u
Abhinav Upadhyay
10 days
RT @anscombes4tet: Join us at @fifthel next week for a free hands-on paper reading workshop where we’ll dissect a ML-Sys '25 paper from pro….
0
3
0
@abhi9u
Abhinav Upadhyay
15 days
RT @abhi9u: When optimizing a loop in Python, a performance trick is to create a local alias for global functions or variables used in the….
0
14
0
@abhi9u
Abhinav Upadhyay
15 days
This article was sponsored by @coderabbitai which allowed me to release it freely for everyone. Very grateful for their support. CodeRabbit is your AI co-pilot for code reviews. It instantly comments on pull requests, suggests one-click fixes, and catches subtle issues using.
0
0
5
@abhi9u
Abhinav Upadhyay
15 days
When optimizing a loop in Python, a performance trick is to create a local alias for global functions or variables used in the loop. E.g.:.l = len.for _ in range(1_000_000):. l(lst). But we still need it given so many perf improvements in Python? I did a benchmark and it appears
Tweet media one
Tweet media two
2
14
158
@abhi9u
Abhinav Upadhyay
18 days
Thank you so much, Vipul. I'm very grateful for your sustained support.
@vaibhaw_vipul
Vipul Vaibhaw
18 days
I love sponsoring open source projects/people. It is a token of respect. Thank you for making my life better. Sponsoring - zig, tokio-rs and Abhinav Upadhyay this month!
Tweet media one
Tweet media two
Tweet media three
0
0
19
@abhi9u
Abhinav Upadhyay
19 days
RT @bml_khubbard: Here's a link for the eBook (PDF) version of my book. For some reason it is on a different web-page. .
0
15
0
@abhi9u
Abhinav Upadhyay
20 days
I will follow whatever rabbit holes I want to. You are more than welcome to not read.
@cmmonco
pseudo_code
20 days
@abhi9u People need to draw line. if you want to build something fast or write logic faster use python. I dont understand why bother on writing an article of making python faster, by going into the rabbit hole. Instead, python should internally handle this.
6
4
148
@abhi9u
Abhinav Upadhyay
22 days
RT @abhi9u: I've been running a series on x86 assembly at Confessions of a Code Addict. Recently covered system calls. One interesting aspe….
0
7
0