-
-
Notifications
You must be signed in to change notification settings - Fork 317
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
Docker slow to respond #265
Comments
I am not experiencing this (docker on macbook pro). How are you running docker? Screen.Recording.2021-11-08.at.9.53.11.am.mov |
I actually made a change recently #256 to improve the refresh after changing currencies. Seems quick here? Screen.Recording.2021-11-08.at.9.54.39.am.mov |
Actually, it happens in portfolio view. And then, when I leave Portfolio view, it affects the main page as well. /edit -- I didn't do a screengrab, because it just looks like nothing is happening, and you can't see my keystrokes. |
I can see a problem with swapping back and forth to portfolio mode (at least since previous release). Raised #266 on that. But doesn't seem to be slow. |
In portfolio mode pressing [ or ] doesn't go slow for you? I'm running both a pretty powerful server and a powerful laptop... Might be worth messing around with quantities of coins in your portfolio to see the problem I'm having. |
Yes, [ and ] are slow when you have lots of coins. It looks like it's fetching the history for each coin, one by one (with a 2 second delay between, to avoid coingecko rate limiting etc). Wasn't that always the case?
|
This delay has been in place for 3 years |
Then is it an ordering bug? Like it should prioritize the change of state
with the [ and cease the previous operation to avoid the slowdown?
…On Sun, Nov 7, 2021 at 9:06 PM Simon Roberts ***@***.***> wrote:
This delay has been in place for 3 years
https://github.com/cointop-sh/cointop/blame/master/cointop/chart.go#L255
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#265 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACQAEDOLWEKIJMZ2U3TILZTUK4WB5ANCNFSM5HRKGPXQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
It's not doing anything else at the time, from what I can tell. The 2-second delay is intended to avoid (coingecko) rate-limiting. It would be very easy to hit 50 requests/minute (their API limit) with a couple of range-changes across a large portfolio. There's an existing issue to investigate/tune/minimize this #228 |
Maaaaaybe it would be possible to "fake" the new time range data (using the previous range, and dropping ~half the data), and update it in the background? Especially if moving to a shorter time range. |
(thanks for updating the docker to .10)
Actions in Docker are taking a very long time to render. For example, smashing the [ key stops showing the change progress (from 3d to 7d for example) after a couple of presses and can take up to 10seconds to update. Then it takes an age to update the graph as well.
Another example is Shift+J or Shift+K taking 4 or 5 seconds for the graph to resize (whereas in earlier releases it was instantaneous).
I'm using on a 2019 i3 server, with a 2019 macbook pro in terminal.
Let me know what additional info I can provide to help find the cause.
Thanks,
Pete
The text was updated successfully, but these errors were encountered: