merofinance / analyzer

A monitor for borrow and lending protocols on Ethereum.
MIT License
23 stars 2 forks source link

Vectorize borrow/supply computation #12

Open danhper opened 4 years ago

danhper commented 4 years ago

compute_user_position is currently fine for a single user but it is very slow for many users. It would be good to have a vectorized version that can compute n users at a time.

richardgreg commented 2 years ago

Hi @danhper, I'd like to have a go at this

richardgreg commented 1 year ago

@danhper are you looking for a solution such as instead of a single user, compute_user_position takes in a list of users and returns, say a hashmap of user positions keyed to the user id?