Get the latest tech news
How we made a Ruby method 200x faster
Hat tip to profiling and flamegraphs
Campsite stores lots of rich text, including in posts, comments, messages, and call summaries. Before the PR that introduced the performance regression, we had a single PlainText class responsible for transforming HTML into plain text. Our Rails app primarily serves as an API for our client Next.js application, so it mostly renders JSON, but we still find rack-mini-profiler valuable.
Or read this on Hacker News