After bunch of improvements and tweaks, My Nostr bouncer finally reached to it's finest point.

I did not rewrite it to another language or anything. Still in NodeJS. Now it's efficient in both CPU and Memory usages.

Previously, At this normal traffic, The CPU usage will remain stuck at 50% and then goes 90% at almost every seconds, The load is up to 1. Now as i split two CPU intensive codes into 2 different processes (1 for http & ws connections, and 1 for talking to relays), It just went waaay better than it was before.

I also rewritted most part of the code, Particularly replacing Map() to {}, many other tweaks, and removal of some features that apparently just taking up RAM.

As the result of a lot of tweaks and improvements in the code, The difference is big. Big enough to be noticeable.

Reply to this note

Please Login to reply.

Discussion

finest point 👌