Comments (3)
Thanks, @patricktruebe! Yes, it's pretty much the same for me: much faster without the rvm and nvm scripts. I'm very interested in speeding it up, but I don't have the time right now to dive into this.
from dotfiles.
For me, rvm isn't slow, it's nvm (also see nvm-sh/nvm#1277).
I got it down from 2.9s to 2.2s by hard-coding the nvm path in system/.nvm
:
# before:
source $(brew --prefix nvm)/nvm.sh
# after:
source /usr/local/opt/nvm/nvm.sh
Without this line (ie. without nvm), boot time is only 1.4s for me. I'm benchmarking like this:
lars@Blade ~ ❯ time . .dotfiles/runcom/.bash_profile
real 0m1.408s
user 0m0.865s
sys 0m0.369s
from dotfiles.
Hi @patricktruebe, I've done some work in my dotfiles. Regarding the performance issue, there were two calls to brew --prefix
, which I'm now caching (in .cache.sh
). This cache file could be used for more expensive calls, if we come across them.
If you want to try it, you can run the install.sh
script again, or just the changes in brew.sh
and npm.sh
from 946ce7f.
I'm going to close this issue now, but feel free to discuss (and I'll be happy to re-open).
from dotfiles.
Related Issues (15)
- MacOS terminal doesn't restore working directories HOT 1
- `is-executable` missing from `system/.function` HOT 5
- Updates to Mac Terminal potentially causing issues HOT 5
- Help wanted: Permission denied for dot files HOT 2
- need help HOT 1
- Missing "defaults" command? HOT 1
- source order of `system/*` breaks LS_COLOR HOT 1
- Update Homebrew Cask URL HOT 1
- bats not installed HOT 1
- Brew: Command not found Error 127 HOT 7
- dockutil does not work via Homebrew on macos Monterrey HOT 2
- brew: no such file or directory HOT 3
- Output MacOS Sierra HOT 1
- Typo in alias HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dotfiles.