Replying to Avatar semisol

That reminds me of me and nostr:npub1xtscya34g58tk0z605fvr788k263gsu6cy9x0mhnm87echrgufzsevkk5s's PoW bots

I had some optimizations that allowed 2x-3x faster hashing, and I was going to implement SIMD, but never got around to it

Was that Will's bot that did 44 PoW or something?

Reply to this note

Please Login to reply.

Discussion

Yes. Mine did 41.

I actually have a beefy server I can use for this. Maybe I should also look into HW accelerated SHA256 👀

Let the "Nostr Bot PoW Wars" begin!

I mean, I have a lot of cores available if needed, so 👀

According to my calculations it will take 15 days or less for 48 bit PoW

Do it!

I should also have better multithreading than fork()

better to start one thread per thread and feed them with a queue, you definitely don't want to be making and taking down threads that is an incredible waste of time

every thread works on the same note, the nonce has a thread ID component

this was not optimized for processing thousands of short tasks per minute, more processing one big task like 48 bit PoW

well it's easy enough to fan out the work just by dividing the nonce number space by the number of threads and each one then only has to increment and hash