Tuesday, January 8, 2013

[Rails] Speeding up asset pre-compilation process

My deployments are taking more time because of the asset
precompilation process. I am using capistrano.

I tried a couple of things to speed up this.

1) Overwriting the assets:precompile task, just to skip the
precompilation process if no assets have been changed from the last
time to this time.

2) Using turbo sprockts gem, https://github.com/ndbroadbent/turbo-sprockets-rails3

Here is the reference
http://stackoverflow.com/questions/9016002/speed-up-assetsprecompile-with-rails-3-1-3-2-capistrano-deployment

The first one is working fine, but i want to with more standard way,
with the turbo sprockets gem.

I tested the gem in my local machine its giving an improvement of 1/3
of the total time. However i think it should perform better than that.
Most of my assets are coming from the the custom UI gem i use for the
application.

Does anyone tried that before? or could you suggest anything better
those two solutions?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate