8. Memory Management and Performance

There’s an old elevator pitch which proclaims that Ruby improves programmer happiness and therefore makes programmers more productive. Or you may have heard it this way: “Ruby is optimized for programmer performance.” Either way, I think there’s some truth in those statements. In that light, you can consider this book to be a guide for improving your happiness with Ruby. That is, excluding this chapter.

You can write code all day long with a smile on your face but eventually your application is going to have to execute in the real world. Once that happens you’re going to hobble along until you realize that parts of your application will need to run faster or with less memory. In Ruby, these two things are ...

Get Effective Ruby: 48 Specific Ways to Write Better Ruby now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.