Quote:
I have some code that is connected to a websocket. And it can execute less than .0005 ms so it can be called basically instantly multiple times.
I would be looking at decoupling the receive vs processing logic - receive the data, queue it, done .. Another thread processes the items off the queue - that way you're not too concerned about delays, blocking your WebSocket etc