mod_pagespeed and Rails - does it improve anything?
Asked Answered
P

1

8

Rails 2.3.*, mod_passenger 2.2.* and Apache 2.2.*. Is it worth installing mod_pagespeed or does Rails create all cache headers, etc. properly so that mod_pagespeed is unnecessary?

Picayune answered 5/11, 2010 at 11:19 Comment(3)
FYI, you can contact us and more users at [email protected] and list issues at code.google.com/p/modpagespeed/issues/listStapleton
@Stapleton unfortunately gouglegroups stands short compared to the mighty power of Stack Overflow in the area of Q&A for developers. On the other hand it's great to see you guys here! ;)Circumfuse
@Frankie, I am impressed that there are already people answering questions about mod_pagespeed here. Just wanted to make sure everyone know about official support channels where you can be sure we'll see your comments/issues :)Stapleton
P
13

mod_pagespeed applies several performance optimizations and filters. Rails already includes some of these best practices, such as asset packaging but mod_pagespeed goes even further by compressing and minifying each asset package.

Many of the mod_pagespeed filters can be performed using Ruby by creating specific Rails features or filters, but if you never applied any performance optimization to Ruby until today, the mod_pagespeed is a good plug&play tool.

mod_pagespeed works at server level. It means that several optimization are a little bit more efficient than running the same optimization at Rails level.

Whether you will use mod_pagespeed or not, take the time to inspect your Rails application and ask yourself if you don't have other sections of your application that deserve optimization. The performance improvements provided by mod_pagespeed don't definitely solve all your performance problems.

I saw programmers trying to use asset caching to gain 3ms while they didn't implement any memcached caching strategy to reduce computation time in their Rails model methods. In other words, mod_pagespeed should not be a plug&forget add-on, but just one step in your optimization strategy.

Philina answered 5/11, 2010 at 11:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.