-
Notifications
You must be signed in to change notification settings - Fork 28
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
Creating the Client is kind of slow #110
Comments
Just noticed there's a new release, so I upgrade to it, no change:
800ms this time.
|
OK, so it is mostly.
|
It seems like resolving the bootstrap nodes in mainline. |
Now I'm conflicted - should I set up a local dns resolver cache to speed up my DNS, or should I keep it as is, so I can notice issues like this ... 🤔 |
AFAICT, Pkarr could just wrap mainline initialization in |
Oh... you're the developer of Well, OK. My job here is done I guess. |
I was trying to replicate but you were faster. Anyway, mainline is indeed at |
For me this is just a minor annoyance that I wanted to report, not necessarily need a fix. I am happy to switch to whatever newer version you want, anytime you want, just ping me here or on Matrix and can provide feedback the same day. :) |
I have a code:
and it looks like building
PkarrClient
is kind of slowHere it took around 600ms, but sometimes it takes even more than a second or so. I suspect some initial networking calls being done. But when I look at the code, I can't even tell where exactly would it be. Seems like mostly initializing empty datastructures and spawning a thread.
The text was updated successfully, but these errors were encountered: