Git Product home page Git Product logo

Comments (3)

webpro avatar webpro commented on May 14, 2024

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.

webpro avatar webpro commented on May 14, 2024

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.

webpro avatar webpro commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.