Colin pfp

Colin

@colin

1721 Following
203074 Followers


Colin pfp
9 replies
1 recast
15 reactions

Colin pfp
18 replies
8 recasts
183 reactions

Colin pfp
8 replies
1 recast
31 reactions

Colin pfp
25 replies
24 recasts
197 reactions

Colin pfp
1 reply
0 recast
22 reactions

Colin pfp
5 replies
10 recasts
63 reactions

Colin pfp
2 replies
1 recast
44 reactions

Colin pfp
22 replies
24 recasts
206 reactions

Colin pfp
Some fun technical work today: spent the day debugging why the Paragraph API (Dockerized NodeJS server) was taking ~30s to cold-boot in our VMs. First used `node --prof` on boot and saw that 90% of the time was spent in musl, which handles file ops in Node Alpine. Then ran NODE_MODULE=debug and saw thousands of file opens from thousands of dependency resolutions. Rewrote a bit of the code to dynamically import several of the heavier deps to defer fileopens later, and that helped a bit Eliminated even more resolutions by bundling 95% of the deps into a single file using esbuild We were down to ~15s now; still not great. Next I ran strace on boot and saw that ~10 seconds was spent reading a ~100MB sourcemap file! Disabled sourcemap generation via esbuild (+ added sourcemap upload to a separate step in our CI instead), and that helped significantly. Down to about 3s after all that! Happy with the outcome. I realized the reason why R/W was a bottleneck in the first place is because the serverless host we're using, Fly.io, heavily limits IOPs and disk bandwidth... not great!
8 replies
1 recast
74 reactions

Colin pfp
14 replies
31 recasts
203 reactions

Colin pfp
9 replies
7 recasts
80 reactions

Colin pfp
4 replies
1 recast
35 reactions

Colin pfp
14 replies
34 recasts
254 reactions

Colin pfp
7 replies
2 recasts
63 reactions

Colin pfp
0 reply
1 recast
6 reactions

Colin pfp
4 replies
2 recasts
45 reactions

Colin pfp
2 replies
1 recast
23 reactions

Colin pfp
0 reply
2 recasts
35 reactions

Colin pfp
27 replies
52 recasts
245 reactions

Colin pfp
14 replies
2 recasts
79 reactions

Mini Apps

Paragraph - Farcaster Mini Apps

A Farcaster Mini App by colin

A mini app by colin.

Paragraph - Farcaster Mini Apps

A Farcaster Mini App by colin

A mini app by colin.

Paragraph - Farcaster Mini Apps

A Farcaster Mini App by colin

A mini app by colin.

Paragraph - Farcaster Mini Apps

A Farcaster Mini App by colin

A mini app by colin.

Paragraph - Farcaster Mini Apps

A Farcaster Mini App by colin

A mini app by colin.

Paragraph - Farcaster Mini Apps

A Farcaster Mini App by colin

A mini app by colin.