How SerpApi sped up data extraction from HTML from 3s to 800ms (or How to profile and optimize Ruby code and C extension)
Optimization of Ruby C extension with help of Linux perf, gdb, pprof, rbspy, and kind people.
Tags: ruby, performance, profiling, scraping