gnosis / ido-starter

Gnosis safe app to start auction on gnosis auction
11 stars 19 forks source link

processOrderbookData performance & tests #53

Closed hpmaxi closed 3 years ago

hpmaxi commented 3 years ago

processOrderbookData is taking ~20ms for auctionId=21 in rinkeby, this could be taking much more with a lot of bids. And runs every time the user change the price amount.

To improve this is necessary to make some unit testing for the function and his auxiliary functions too. And then find the bottleneck to try to find a faster way to do the same calculations.

hpmaxi commented 3 years ago

@josojo What do you think?

hpmaxi commented 3 years ago

Wrong repo