- The Rails Performance Workshop. A four-week program that makes your Rails app faster and more scalable. Attended by over 500 developers so far. Team and solo editions.
- The Complete Guide to Rails Performance, an in-depth 370 page reference manual on making Rails apps faster.
- Speedshop Blog, the number one Ruby on Rails performance blog on the 'net.
- The Speedshop Newsletter, a weekly email newsletter that talks about issues surrounding optimizing and scaling Ruby web applications.
nateberkopec
Follow
Owner @ https://www.speedshop.co, author of www.railsspeed.com.
- Tokyo, JP
-
05:50
(UTC +09:00) - http://nateberkopec.com
- @nateberkopec
Pinned Loading
-
gilded_rose
gilded_rose Public90 minutes of putting Nate in a interview to do Gilded Rose and you get...
Ruby 7
-
A Guide to GC.stat
A Guide to GC.stat 1Most Ruby programmers don't have any idea how garbage collection works in their runtime - what triggers it, how often it runs, and what is garbage collected and what isn't. That's not entirely a bad thing - garbage collection in dynamic languages like Ruby is usually pretty complex, and Ruby programmers are better off just focusing on writing code that matters for their users.
23But, occasionally, you get bitten by GC - either it's running too often or not enough, or your process is using tons of memory but you don't know why. Or maybe you're just curious about how GC works!
45One way we can learn a bit about garbage collection in CRuby (that is, the standard Ruby runtime, written in C) is to look at the built-in `GC` module. If you haven't [read the docs](https://ruby-doc.org/core-2.4.0/GC.html) of this module, check it out. There's a lot of interesting methods in there. But for right now, we're just going to look at one: `GC.stat`.
-
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.