Ethan,
My investments have begun to take a very long time to load. I believe this is due to two factors:
1. Once after the initial page load, clicking on the Invest tab sends two
list_investments calls, and receives two responses. This creates unnecessary additional load for the server and the client. Every time the Invest tab is selected after this, it only sends a single call.
Example2. Even though the "Display closed investments" box is unchecked by default so closed investments are not displayed to the user,
all investments are requested from the server. I have frequently opened and closed investments, and now have 192 total investments including closed ones. It's not necessary to send that information to the client until they explicitly request it by checking the "Display closed investments" box. This could be fixed by using the
status parameter when calling
list_investments.
ExampleHopefully, this information will help you debug long loading times on investments for certain users and reduce server load.
Thanks for it. I know we are requesting investments info often from the server and if someone has a lot of closed investments it makes the response a bit long. There is not however a performance-issue uless you have thousands of investments (which someone COULD have at some point), so it's definitely something we need to improve!
On the other hand, I need some stats for closed investments and right now it's calculated in the browser. But I'll probably move it to the server - agregating investment data on the server should be pretty fast.
Right now I am working on adding ETH - and it looks pretty good. I can already generate deposit addresses and process deposits. The only thing I need to do is withdrawals and to make sure the implementation is bullet-proof.
Cheers,
Ethan