{"action":"created","issue":{"url":"https://api.github.com/repos/rvm/rvm/issues/2582","repository_url":"https://api.github.com/repos/rvm/rvm","labels_url":"https://api.github.com/repos/rvm/rvm/issues/2582/labels{/name}","comments_url":"https://api.github.com/repos/rvm/rvm/issues/2582/comments","events_url":"https://api.github.com/repos/rvm/rvm/issues/2582/events","html_url":"https://github.com/rvm/rvm/issues/2582","id":26455321,"number":2582,"title":"loading RVM seems slow","user":{"login":"tisba","id":75156,"avatar_url":"https://avatars.githubusercontent.com/u/75156?v=3","gravatar_id":"","url":"https://api.github.com/users/tisba","html_url":"https://github.com/tisba","followers_url":"https://api.github.com/users/tisba/followers","following_url":"https://api.github.com/users/tisba/following{/other_user}","gists_url":"https://api.github.com/users/tisba/gists{/gist_id}","starred_url":"https://api.github.com/users/tisba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tisba/subscriptions","organizations_url":"https://api.github.com/users/tisba/orgs","repos_url":"https://api.github.com/users/tisba/repos","events_url":"https://api.github.com/users/tisba/events{/privacy}","received_events_url":"https://api.github.com/users/tisba/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/rvm/rvm/milestones/26","html_url":"https://github.com/rvm/rvm/milestones/rvm%201.25","labels_url":"https://api.github.com/repos/rvm/rvm/milestones/26/labels","id":510825,"number":26,"title":"rvm 1.25","description":"","creator":{"login":"mpapis","id":48054,"avatar_url":"https://avatars.githubusercontent.com/u/48054?v=3","gravatar_id":"","url":"https://api.github.com/users/mpapis","html_url":"https://github.com/mpapis","followers_url":"https://api.github.com/users/mpapis/followers","following_url":"https://api.github.com/users/mpapis/following{/other_user}","gists_url":"https://api.github.com/users/mpapis/gists{/gist_id}","starred_url":"https://api.github.com/users/mpapis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpapis/subscriptions","organizations_url":"https://api.github.com/users/mpapis/orgs","repos_url":"https://api.github.com/users/mpapis/repos","events_url":"https://api.github.com/users/mpapis/events{/privacy}","received_events_url":"https://api.github.com/users/mpapis/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":348,"state":"closed","created_at":"2013-12-11T14:43:58Z","updated_at":"2014-10-29T12:50:20Z","due_on":"2013-12-15T08:00:00Z","closed_at":"2014-10-29T12:47:28Z"},"comments":11,"created_at":"2014-01-28T16:31:04Z","updated_at":"2016-08-25T16:43:11Z","closed_at":"2014-01-30T17:09:01Z","body":"While trying to debug the slow zsh startup, I noticed that\r\n\r\n```bash\r\n[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm\r\n```\r\n\r\ntakes a significant amount of time. Using `time /usr/local/bin/zsh -c \"source $HOME/.rvm/scripts/rvm\"` I noticed that it takes about **1 sec** (+/- 150ms). For a college of mine (@railsbros-dirk) the same command (same zsh and RVM version) takes about 0.15s.\r\n\r\nI already reinstalled RVM (`rvm implode`) without any difference.\r\n\r\nI'd like to debug this further but I don't know where to start exactly :-/\r\n\r\nI'm using\r\n\r\n* OS X 10.9.1\r\n* rvm 1.25.15 (master)\r\n* zsh 5.0.5 (via homebrew)\r\n* iTerm2 Build 1.0.0.20140112"},"comment":{"url":"https://api.github.com/repos/rvm/rvm/issues/comments/242457839","html_url":"https://github.com/rvm/rvm/issues/2582#issuecomment-242457839","issue_url":"https://api.github.com/repos/rvm/rvm/issues/2582","id":242457839,"user":{"login":"orangeudav","id":418868,"avatar_url":"https://avatars.githubusercontent.com/u/418868?v=3","gravatar_id":"","url":"https://api.github.com/users/orangeudav","html_url":"https://github.com/orangeudav","followers_url":"https://api.github.com/users/orangeudav/followers","following_url":"https://api.github.com/users/orangeudav/following{/other_user}","gists_url":"https://api.github.com/users/orangeudav/gists{/gist_id}","starred_url":"https://api.github.com/users/orangeudav/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orangeudav/subscriptions","organizations_url":"https://api.github.com/users/orangeudav/orgs","repos_url":"https://api.github.com/users/orangeudav/repos","events_url":"https://api.github.com/users/orangeudav/events{/privacy}","received_events_url":"https://api.github.com/users/orangeudav/received_events","type":"User","site_admin":false},"created_at":"2016-08-25T16:43:11Z","updated_at":"2016-08-25T16:43:11Z","body":"Hmm, i have same problem with speed of `source \"$HOME/.rvm/scripts/rvm\"` last two days , but after profiled with `time /usr/local/bin/bash -c \"rvm_trace_flag=1; source $HOME/.rvm/scripts/rvm\" 2>&1 | tee big.log` the problem was disappeared. The log is here https://gist.github.com/orangeudav/80fff5484198f58085bf17447a787042\r\nThis is sort of magic i think :) \r\nps In one moment i saw error that uname and ps not found ...\r\n\r\n```\r\n> rvm --version\r\nrvm 1.27.0 (master) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]\r\n> uname -a\r\nDarwin scud.local 15.6.0 Darwin Kernel Version 15.6.0: Thu Jun 23 18:25:34 PDT 2016; root:xnu-3248.60.10~1/RELEASE_X86_64 x86_64\r\n> echo $PATH\r\n/Users/orangeudav/.rvm/gems/ruby-2.3.1/bin:/Users/orangeudav/.rvm/gems/ruby-2.3.1@global/bin:/Users/orangeudav/.rvm/rubies/ruby-2.3.1/bin:/Users/orangeudav/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/orangeudav/.rvm/bin\r\n```"}}
{"actor":{"display_login":"orangeudav"}}