Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Precompiling process is considered slow #245

Open
chenxeed opened this issue Jul 28, 2015 · 7 comments
Open

Precompiling process is considered slow #245

chenxeed opened this issue Jul 28, 2015 · 7 comments

Comments

@chenxeed
Copy link

Hi,

I used to precompile a lot and I realize that everytime i'm doing precompiling, on my site it takes around 5 minutes long to finish precompile, while before using requireJS it's only taking me less than 1mins.

I suspect the reason is that because on precompiling, it keeps regenerating all files even if it's not changed. Please correct me if I'm wrong about this.

Will be happy to discuss if there's any tweak I can do to reduce the precompile process. Thank you

@siassaj
Copy link

siassaj commented Apr 15, 2016

We're experiencing extremely slow asset precompilation also, with node reaching 99-100% cpu for the entire time, even if no js files were touched.

I'm pouring over the source now, but it's making requirejs rails next to unusable on the smaller ec2 instances that use cpu credits...

Anyone else getting this?

@a2f0
Copy link

a2f0 commented Jul 25, 2016

+1

@tilsammans
Copy link

@siassaj did you ever find out what was causing it? I am seeing the same thing.

@carsomyr
Copy link
Collaborator

carsomyr commented Sep 8, 2017

@tilsammans Have you tried calling Node directly, using the generated tmp/requirejs/rjs_driver.js file?

@tilsammans
Copy link

Ah, not yet. Will check that out!

@siassaj
Copy link

siassaj commented Sep 8, 2017

@tilsammans sorry, never got to the bottom of it.
I switched out to webpack and it was the right thing to do.

@kevinluo201
Copy link

I think you can avoid to include "node_modules" in assetes.rb

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants