Free shipping on orders over $99
Ruby Performance Optimization

Ruby Performance Optimization

Why Ruby Is Slow, and How to Fix It

by Alexander Dymo
Paperback
Publication Date: 15/12/2015

Share This Book:

35%
OFF
RRP  $68.50

RRP means 'Recommended Retail Price' and is the price our supplier recommends to retailers that the product be offered for sale. It does not necessarily mean the product has been offered or sold at the RRP by us or anyone else.

$44.75

You don't have to accept slow Ruby or Rails performance. In this comprehensive guide to Ruby optimization, you'll learn how to write faster Ruby code--but that's just the beginning. See exactly what makes Ruby and Rails code slow, and how to fix it. Alex Dymo will guide you through perils of memory and CPU optimization, profiling, measuring, performance testing, garbage collection, and tuning. You'll find that all those "hard" things aren't so difficult after all, and your code will run orders of magnitude faster.

This is the first book ever that consolidates all the Ruby performance optimization advice in one place. It's your comprehensive guide to memory optimization, CPU optimization, garbage collector tuning, profiling, measurements, performance testing, and more.

You'll go from performance rookie to expert. First, you'll learn the best practices for writing Ruby code that's easy not only on the CPU, but also on memory, and that doesn't trigger the dreaded garbage collector. You'll find out that garbage collection accounts for 80% of slowdowns, and often takes more than 50% of your program's execution time. And you'll discover the bottlenecks in Rails code and learn how selective attribute loading and preloading can mitigate the performance costs of ActiveRecord.

As you advance to Ruby performance expert, you'll learn how profile your code, how to make sense out of profiler reports, and how to make optimization decisions based on them. You'll make sure slow code doesn't creep back into your Ruby application by writing performance tests, and you'll learn the right way to benchmark Ruby.

And finally, you'll dive into the Ruby interpreter internals to really understand why garbage collection makes Ruby so slow, and how you can tune it up.

What You Need:

Some version of Ruby. The advice from this book applies to all modern Ruby versions from 1.9 to 2.2. 80% of the material will also be useful for legacy Ruby 1.8 users, and there is 1.8-specific advice as well.

ISBN:
9781680500691
9781680500691
Category:
Object-oriented programming (OOP)
Format:
Paperback
Publication Date:
15-12-2015
Language:
English
Publisher:
Pragmatic Programmers, LLC, The
Country of origin:
United States
Dimensions (mm):
234x190x14mm
Weight:
0.39kg

This title is in stock with our Australian supplier and should arrive at our Sydney warehouse within 1-2 weeks of you placing an order.

Once received into our warehouse we will despatch it to you with a Shipping Notification which includes online tracking.

Please check the estimated delivery times below for your region, for after your order is despatched from our warehouse:

ACT Metro 2 working days

NSW Metro 2 working days 

NSW Rural 2-3 working days

NSW Remote 2-5 working days

NT Metro 3-6 working days

NT Remote 4-10 working days

QLD Metro 2-4 working days

QLD Rural 2-5 working days

QLD Remote 2-7 working days

SA Metro 2-5 working days

SA Rural 3-6 working days

SA Remote 3-7 working days

TAS Metro 3-6 working days

TAS Rural 3-6 working days

VIC Metro 2-3 working days

VIC Rural 2-4 working days

VIC Remote 2-5 working days

WA Metro 3-6 working days

WA Rural 4-8 working days

WA Remote 4-12 working days

Reviews

Be the first to review Ruby Performance Optimization.