planetary-social / cleanstr

MIT License
1 stars 0 forks source link

[Cleanstr] [tech debt] High CPU usage issues with signature verification #18

Open dcadenas opened 1 year ago

dcadenas commented 1 year ago

The moderator google cloud function checked signatures for each event to moderate. These are expensive CPU bound operations and @mplorentz discovered that we were incurring in high costs, I assume the signatures were the cause. For the moment I disabled the verification but this is not ideal. One alternative to consider is to host an instance in Google Cloud Engine and there host a Rust server that just does the Schnorr signature work needed. We could test with some feature flag and see if gives better results