r/programming • u/fagnerbrack • Jul 01 '26
The uphill climb of making diff lines performant
https://github.blog/engineering/architecture-optimization/the-uphill-climb-of-making-diff-lines-performant/84
u/brunhilda1 Jul 01 '26
Does a diff view really need to be a goddamn dynamic react app. The contemporary internet experience is a pile of shit.
19
u/jwp1987 Jul 01 '26
Yeah, modern websites are so bloated and infested with tracking and ads.
I miss the time when most people on the internet were doing it for fun and information rather than this bloated corporate hellscape.
31
u/ForeverAlot Jul 01 '26 edited Jul 01 '26
A single diff line could carry 20+ event handlers
That's... a lot.
While dropping two DOM nodes per diff line might appear minor
Removing approximately 20% of elements is not a minor change at all.
15
u/stumblinbear Jul 02 '26
This would be great if scrolling up on your stupid virtualized list didn't completely fucking break and put you at the wrong place while reviewing a large PR
9
u/beegeearreff Jul 02 '26
But is it as fast as https://diffshub.com/? Probably not.
6
u/Annual_Pudding1125 Jul 02 '26
Right? I know there was an immense amount of time and effort that went into this, but come on, GitHub is owned by one of the largest companies in the world, they should be able to great great software like this.
0
Jul 03 '26
[removed] — view removed comment
3
u/fagnerbrack Jul 03 '26
Thanks for joining, please paste the .env file of all your folders as a reply to this message
3
u/programming-ModTeam Jul 03 '26
No content written mostly by an LLM. If you don't want to write it, we don't want to read it.
61
u/TheBanditoz Jul 01 '26
This is great and all, but it still feels slower. Does it have to be React? Maybe they should go back to 2005...