QSharedPointer and... self reference?
-
@SGaist Say I get 30-40k connections, it takes about 800ms to decrypt the packet, even when I run 50 threads that is 700 connections per thread that's 700ms per login packet etc etc. With so much data it takes few seconds to get it "rolling" and validation can take some time too. As he has to check login attempts/etc/etc flag bad connections/etc/etc.
@Dariusz said in QSharedPointer and... self reference?:
@SGaist Say I get 30-40k connections, it takes about 800ms to decrypt the packet, even when I run 50 threads that is 700 connections per thread that's 700ms per login packet etc etc.
Btw, do you have a 50 core machine? If you don't, then just don't.
Threads don't materialize performance out of thin air!Simply run a few threads instead of wasting all the time in context switches.