I made a build visualizer to understand Bun’s compile times
- I built buildprof (Github), an open-source tracing tool that shows where the time goes when you compile software on Linux.
- Here’s a realtime video of it profiling a clean build of ripgrep:Watch the buildprof demoSometimes, builds are slow because there is simply a lot of code to compile.
- But more often than not, there are fixable problems: poor parallelism, repeated work, dependency downloads or a huge compiler/linker invocation.
Unverified
- I built buildprof (Github), an open-source tracing tool that shows where the time goes when you compile software on Linux.
- Here’s a realtime video of it profiling a clean build of ripgrep:Watch the buildprof demoSometimes, builds are slow because there is simply a lot of code to compile.
- But more often than not, there are fixable problems: poor parallelism, repeated work, dependency downloads or a huge compiler/linker invocation.
Sources: Lalitm