This repository has been archived by the owner. It is now read-only.

Reduce subshells #57

Merged
merged 2 commits into from Dec 5, 2011

Conversation

Projects
None yet
2 participants
@tenderlove
Contributor

tenderlove commented Dec 5, 2011

Rails boot seems to be spending a lot of time creating subshells. These two commits should reduce the subshells that ExecJS creates by implementing which in Ruby. File stats are reduced by lazily searching for the executable.

I made a similar change to bundler.

Thanks!

@josh

This comment has been minimized.

Show comment
Hide comment
@josh

josh Dec 5, 2011

Contributor

🤘

Contributor

josh commented Dec 5, 2011

🤘

josh added a commit that referenced this pull request Dec 5, 2011

@josh josh merged commit aaa25c4 into sstephenson:master Dec 5, 2011

+ end
+
+ def which_unix(name)
+ if File.executable? cmd

This comment has been minimized.

@josh

josh Dec 5, 2011

Contributor

name vs cmd

@josh

josh Dec 5, 2011

Contributor

name vs cmd

@josh

This comment has been minimized.

Show comment
Hide comment
@josh

josh Dec 5, 2011

Contributor

Fixed 9329d2b

Contributor

josh commented Dec 5, 2011

Fixed 9329d2b

@luislavena luislavena referenced this pull request Dec 6, 2011

Merged

Remove subshells windows #58

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.