-
-
Notifications
You must be signed in to change notification settings - Fork 277
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
Initializing octocrab takes 300ms on macOS #396
Comments
Thank you for your issue! No I'm not aware of anything. You might want to use something like |
I can confirm this is a problem with octocrab. My hyperfine results went from
to
by just commenting out the octocrab initialisation, there were no other modifications. This is on the latest version |
|
@theRookieCoder Im pretty sure it does given their documentation mentions it and I have used it before on macOS. You might want to make sure you're running as superuser. https://github.com/flamegraph-rs/flamegraph#dtrace-on-macos |
Interesting, I wonder what's calling that, we don't use that directly, so I have to assume it's some https thing. |
@raine Were you also on macOS? |
Yes |
Here is an image of a trace. It shows this is coming from See also:
![]() |
My needs were quite modest so I solved the problem by writing a small Github client from scratch with reqwest, which for some reason does not have this delay. Perhaps it uses native tls instead of rustls. |
Can you try running with |
Any ideas what could make it this slow? From a quick glance to the code I couldn't see anything obvious.
It should be just building a http client, correct?
Output
The text was updated successfully, but these errors were encountered: