tobiipro / support-firecloud

Software and configuration that support TobiiPro's Cloud Services development.
Apache License 2.0
4 stars 1 forks source link

perf: replace $(brew --prefix nvm) with $(brew --prefix)/opt/nvm #192

Closed andreineculau closed 3 years ago

andreineculau commented 4 years ago

As described in #182 a call to brew --prefix nvm is slow (it's 3 seconds for me), but what I forgot is that there are many calls to it: each make but also each shell script. In the current flow, I can count 10+ calls, so more than half a minute is wasted.

I made a change that should be good in most if not all of the cases. brew --prefix is uber fast in comparison.