-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Detect Darwin with lighter method #135
Detect Darwin with lighter method #135
Conversation
6480e63
to
12db550
Compare
Thanks! This looks interesting and like a good improvement. I just upgraded so the difference seems negligible to me but I will try on my old laptop. Any ideas of Ah here we go:
So... 'macunix' is probably the one to go with (OSX) I think 😄 Do you know anything about the reliability of this vs the system call? I will read up on this more. So far looks like this would be a good change... |
Sorry, I was mistaken. After all, we have to call
I will rewrite PR for this logic. |
12db550
to
57eead7
Compare
Updated. I added a config value |
Sorry for long delay. Overall I like this change but have some questions and feedback. The 2nd conditional seems a little odd to me. Couldn't it be eliminated if I think by default the system call should be done if we still aren't 100% from the info from Maybe instead of |
Indeed. It is useless that
|
57eead7
to
5f3a4c5
Compare
Updated. Should I explain about |
5f3a4c5
to
467ae8e
Compare
Awesome. Glad you agreed 😃 Feel free to add it to the readme, just know I might tweak it. Thanks. |
feel free to test this out in 0.8.0 branch Not fully tested but seems stable |
9aa854c
to
6abf71f
Compare
6abf71f
to
46a928b
Compare
readme updated. Please correct expression, if needed. |
The plugin is detecting Darwin by system
uname
command. But thesystem()
call is too slow, and I noticed it makes the starting method slow, also. In this PR,has('macunix')
is used for detecting Darwin instead ofsystem()
call.You can see this with
+profile
feature.Vim took 0.286557 second with its loading, and
system("uname -s")
occupied most of it, 0.284813 second.