# We Rewrote Our Flame Graph Renderer from SVG to Canvas for Speed

Original title: We rewrote our custom visualisation renderers from SVG to be in Canvas

> Hacker News story 48940641 · language: en · submitted 2026-07-16
> Web version: https://zeli.app/story/48940641
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 29 · by [yomieluwande](<https://news.ycombinator.com/user?id=yomieluwande>) · 💬 2
[original](<https://www.polarsignals.com/blog/posts/2026/07/14/new-and-faster-profiler>) · [HN discussion](<https://news.ycombinator.com/item?id=48940641>)

## Summary

We replaced our SVG-based flame graph renderer with a Canvas implementation to eliminate the performance ceiling caused by managing thousands of DOM nodes. By switching to an immediate-mode API and leveraging zero-copy Arrow data, we achieved instant zooming and scrolling. This approach removes the browser's heavy styling and layout overhead, making our profiler dashboard feel significantly faster for users.

## Key quote

> The fundamental problem here was that we were asking the browser to manage an enormous amount of structure.

---

## Cite

- Page: https://zeli.app/story/48940641
- Date: 2026-07-16
- Source: polarsignals.com (https://www.polarsignals.com/blog/posts/2026/07/14/new-and-faster-profiler)
- Hacker News: https://news.ycombinator.com/item?id=48940641

## Other languages

- zh: https://zeli.app/zh/story/48940641 · markdown: https://zeli.app/zh/story/48940641.md
- ja: https://zeli.app/ja/story/48940641 · markdown: https://zeli.app/ja/story/48940641.md
- ko: https://zeli.app/ko/story/48940641 · markdown: https://zeli.app/ko/story/48940641.md
- de: https://zeli.app/de/story/48940641 · markdown: https://zeli.app/de/story/48940641.md
- es: https://zeli.app/es/story/48940641 · markdown: https://zeli.app/es/story/48940641.md
