{"action":"created","issue":{"url":"https://api.github.com/repos/brson/multirust/issues/83","labels_url":"https://api.github.com/repos/brson/multirust/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/brson/multirust/issues/83/comments","events_url":"https://api.github.com/repos/brson/multirust/issues/83/events","html_url":"https://github.com/brson/multirust/issues/83","id":97385314,"number":83,"title":"multirust is slow on OS X","user":{"login":"comex","id":47517,"avatar_url":"https://avatars.githubusercontent.com/u/47517?v=3","gravatar_id":"","url":"https://api.github.com/users/comex","html_url":"https://github.com/comex","followers_url":"https://api.github.com/users/comex/followers","following_url":"https://api.github.com/users/comex/following{/other_user}","gists_url":"https://api.github.com/users/comex/gists{/gist_id}","starred_url":"https://api.github.com/users/comex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/comex/subscriptions","organizations_url":"https://api.github.com/users/comex/orgs","repos_url":"https://api.github.com/users/comex/repos","events_url":"https://api.github.com/users/comex/events{/privacy}","received_events_url":"https://api.github.com/users/comex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-07-27T04:35:56Z","updated_at":"2015-08-07T20:23:42Z","closed_at":null,"body":"After installing multirust on my MacBook Pro (OS X 10.11 beta), I noticed that getting from typing rustc to getting the help screen felt more sluggish than usual.  To test this, I changed the last line of `multirustproxy` to just echo the command rather than running it, and timed it; it took between 100 and 200ms, which is quite a lot for a tool whose purpose is just to locate a toolchain.\r\n\r\nOnce I realized it was entirely a shell script, I tried doing the same in my Linux VM - 15ms.  Welp.\r\n\r\nSwitching the scripts from `/bin/sh` (which is `bash` on OS X) to my Homebrew-installed `dash` brought the time down a bit to be often in the 80-90ms range, but that's not much of a difference.\r\n\r\nUnless there's some factor I'm missing, I can only conclude that OS X is slow at process creation and thus shell scripts.  Not exactly multirust's fault, but if you ever consider rewriting it in Rust or something, know that it would improve the user experience on OS X. :)"},"comment":{"url":"https://api.github.com/repos/brson/multirust/issues/comments/128825793","html_url":"https://github.com/brson/multirust/issues/83#issuecomment-128825793","issue_url":"https://api.github.com/repos/brson/multirust/issues/83","id":128825793,"user":{"login":"brson","id":147214,"avatar_url":"https://avatars.githubusercontent.com/u/147214?v=3","gravatar_id":"","url":"https://api.github.com/users/brson","html_url":"https://github.com/brson","followers_url":"https://api.github.com/users/brson/followers","following_url":"https://api.github.com/users/brson/following{/other_user}","gists_url":"https://api.github.com/users/brson/gists{/gist_id}","starred_url":"https://api.github.com/users/brson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brson/subscriptions","organizations_url":"https://api.github.com/users/brson/orgs","repos_url":"https://api.github.com/users/brson/repos","events_url":"https://api.github.com/users/brson/events{/privacy}","received_events_url":"https://api.github.com/users/brson/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T20:23:42Z","updated_at":"2015-08-07T20:23:42Z","body":"I've been stracing some runs of the compiler through multirust and noticed lots of execve's to `cut`. There may be opportunities to get perf back by spawning fewer processes as part of the script."}}