What is Nostr?
Felix Urbasik /
npub1rnv…xy4p
2025-02-12 14:54:05
in reply to nevent1q…2jj5

Felix Urbasik on Nostr: nprofile1q…kktgp This looks like you constantly allocate memory which then gets ...

nprofile1qy2hwumn8ghj7un9d3shjtnddaehgu3wwp6kyqpqqwkaun0pqpnzswj2c0gtn2aggllvxwzvt855qnft7vw3zcc5dh2swkktgp (nprofile…ktgp) This looks like you constantly allocate memory which then gets cleaned up by a garbage collector in regular intervals.

Not alarming. There is probably way worse JS code out there. If you want peak performance, you could look into ways of avoiding allocations in JavaScript. But that's something you would have to research yourself, I'm afraid.

For starters, look out for code that handles large strings, and try avoiding creating copies of them.
Author Public Key
npub1rnvqplgvv6n4xeee8v8tjtp3klz884hn99uekf8eaf8evucq5rfqgyxy4p