Daniel Lockyer

7.9K posts

Daniel Lockyer banner
Daniel Lockyer

Daniel Lockyer

@DanielLockyer

• I make sites faster and cloud/LLM bills lower 🚀 • 2:43 marathoner • performance merch: https://t.co/Nsptj8AOgb

Amsterdam Katılım Aralık 2010
136 Takip Edilen25.5K Takipçiler
Sabitlenmiş Tweet
Daniel Lockyer
Daniel Lockyer@DanielLockyer·
I've found (and locally fixed) an annoying performance bug on @X web! TLDR: go to a post with a lot of replies, and scroll up and down - notice it's laggy? There's a component that calculates the scroll parent, and then removes the scroll listener when unmounting. But it seems we don't even have a scroll listener most of the time, so we can avoid the heavy _getScrollParent function by wrapping it in a conditional This removes seconds of forced reflow and lag for me Would love to get it fixed! 🙏🏻 @X @XEng @elonmusk @nikitabier
Daniel Lockyer tweet media
English
110
88
3K
635.4K
Daniel Lockyer
Daniel Lockyer@DanielLockyer·
Observability is so vital to understanding what your system is doing, and yet most teams are flying completely blind Even the process of setting it up reveals many insights Measure and thou shall improve performance (Shakespeare)
Dylan Garcia@_dylanga

The first thing I did at @tryramp was set up distributed tracing, structured logging, and metrics for Inspect, our background coding agent. We now have full visibility in to everything the system is doing: the browser, CF workers/DOs, @modal sandboxes, database calls, etc. Most importantly, Inspect now has visibility in to itself. It can self-triage runtime errors it encounters and create PRs to fix them. Every morning, it reviews the past 24 hours of its own @datadoghq dashboard, identifies systemic issues, new errors, and long tail latencies, and has a summary + PR waiting for me at 9am.

English
0
0
1
420
Daniel Lockyer
Daniel Lockyer@DanielLockyer·
Shipped a fix to my client's staging site and the results look good Will be deployed to production next week, I'll post a graph Should help with the random spikes in latency 🚀
Daniel Lockyer tweet media
Daniel Lockyer@DanielLockyer

Just found a rogue piece of serveStatic middleware coming from Swagger being mounted on the API route and enabled in production Every API request was hitting the filesystem to see if the file existed 😱 Now fixed, will be deployed with my other changes very soon

English
1
0
1
568
Daniel Lockyer
Daniel Lockyer@DanielLockyer·
@stalmico Check your resources and make sure they're in the same region/AZ
English
0
0
1
7
Daniel Lockyer
Daniel Lockyer@DanielLockyer·
You should probably enable TLS connection re-use/keepalive in your applications Here's a heatmap of tls.connect latency in a production Node.js app P50 is 400ms, P99 up at 3.9s Fix this and all your external API requests become instantly faster
Daniel Lockyer tweet media
English
10
5
223
24.7K
Dylan Garcia
Dylan Garcia@_dylanga·
Inspect looked at its own metrics, analyzed its traces, and removed unnecessary queries from an auth hotpath, dropping the p99 from 80ms to 25ms, and the average from 55ms to 6ms.
Dylan Garcia tweet media
Dylan Garcia@_dylanga

The first thing I did at @tryramp was set up distributed tracing, structured logging, and metrics for Inspect, our background coding agent. We now have full visibility in to everything the system is doing: the browser, CF workers/DOs, @modal sandboxes, database calls, etc. Most importantly, Inspect now has visibility in to itself. It can self-triage runtime errors it encounters and create PRs to fix them. Every morning, it reviews the past 24 hours of its own @datadoghq dashboard, identifies systemic issues, new errors, and long tail latencies, and has a summary + PR waiting for me at 9am.

English
2
0
69
7K
jack friks
jack friks@jackfriks·
FOUR YEARS. MY MONITOR HAD SO MUCH GLARE. SO DOES MY NEW ONE... UNTIL i changed system theme settings to auto. light mode in daylight, dark mode in night time thank you @UltraLinx, my saviour
jack friks tweet media
English
17
0
83
20.5K
Taggart VanEtten
Taggart VanEtten@taggartvanetten·
as i’m getting closer to my 100 mile race i’ll need to take a step back from overtraining & take a “rest day” this coming sunday and next thursday i apologize to everyone out there following the movement, my body just needs a lil break before my biggest day ever of overtraining
English
10
0
93
3.7K
Daniel Lockyer
Daniel Lockyer@DanielLockyer·
@losterheider Given it's the only one working whilst Opus and Codex has been broken, pretty good haha!
English
1
0
1
236
Daniel Lockyer
Daniel Lockyer@DanielLockyer·
@losterheider I was trying to use Codex this morning and it was also having some sort of outage 😅
English
1
0
0
113
Daniel Lockyer
Daniel Lockyer@DanielLockyer·
it's that time of the day again
Daniel Lockyer tweet media
English
5
0
23
5.3K
vogel
vogel@ryanvogel·
@DanielLockyer Hmmmm I actually might hit you up for some optimization ideas for an internal project we are working on
English
1
0
1
183