Get the latest tech news
Making Castro’s Feeds Update Faster the Lazy Way
Optimizing Castro's worker jobs to get your podcasts to you more quickly
I’m much more comfortable with statically typed languages with meaningful function names, but I worked on performance optimizations for a living at one time so I have some relevant experience. For the vast majority of software systems, open source or otherwise, nobody is monitoring what every line of code in production is doing, so just looking carefully at things with fresh eyes will usually yield something that can be improved. It seems like the issue is ActiveRecord is not always reusing the same connection within a thread and it doesn’t free them very quickly, so releasing it proactively makes a huge difference.
Or read this on Hacker News