Hayk Saakian
Hayk Saakian

Reputation: 2036

pjax vs turbolinks vs cache_digests to improve rails speed?

I've done some reading about the various options for improving the speed of a rails site.

The following libraries seem promising:

However, it seems like they try to do many similar things.

Can/Should you use them in tandem? Are there problems that would arise in doing so?

Are there cases where one or the other is better than the rest? (And what are they?)

Is there something superior to all three I should check out instead?

Upvotes: 2

Views: 3065

Answers (2)

cpuguy83
cpuguy83

Reputation: 5993

cache_digests is not something that can be compared with pjax or turbolinks. cache_digests enhances Rails caching to allow for Russian-doll caching.

Turbolinks tends to be a bit more straightforward and doesn't require jquery.

Pjax is configurable but required jquery.

Upvotes: 2

Andre Zimpel
Andre Zimpel

Reputation: 2343

I prefer pjax. It's easy to use and very fast. You just have to define a pjax-container which will be replaced every request.

Turbolinks instead does replace the whole body. I don't like that very much. But that's matter of taste. It will be part of Rails 4.

Upvotes: 4

Related Questions