logoalt Hacker News

I made a build visualizer to understand Bun's compile times

96 pointsby lalitmagantiyesterday at 2:45 PM20 commentsview on HN

Comments

xcc3641today at 1:45 AM

Full LTO on the WebKit link is the serial part. Does your visualizer split link time from codegen?

show 1 reply
anaqinyesterday at 6:16 PM

Good write up! I was hoping it was going to conclude with the author getting buns zig build way faster than Rusts but a good deep dive nevertheless

show 1 reply
t43562yesterday at 7:00 PM

It's like Electric Insight, which was a fantastic if proprietary tool.

There's an enormous amount of analysis you can do with tools like this from estimating how much faster the build would be with more cores (i.e. is it worth adding more) to things like a diff of one build against another: why is one build bad and the other good - what tasks had different parameters or weren't in both builds?

show 2 replies
flimflammyesterday at 6:31 PM

It would be interesting to see what would be good input for LLMs to do the optimizations / trials on that automatically. Is the visual representation best or something else?

show 2 replies
applfanboysbgonyesterday at 10:41 PM

Excellent write-up, love to see profiling work on compile times. I have some rudimentary tooling I threw together myself but nothing that looks as comprehensive and insightfully presented as this, I'll be giving it a try!