iris took insane amount of cpu power 😞
Discussion
What's weird is why it's doing it constantly, not just when you're doing something. I mean, the system is extremely responsive, so it's not like it's coded inefficiently. (or maybe they're just using threading/workers well enough to hide its inefficiency)
i believe iris has to do its elliptic curve calculations in pure javascript because there aren't accelerated crypto api for its particular implementation. a bunch of operations are done in a service worker in the background. if it were done in the foreground it would constantly be halting the main thread to do that calculation. I hasd similar issues years ago coding ethereum web3 stuff and had to solve it the same way, move a bunch of stuff to a worker thread in the background