5d-diplomacy-with-multiverse-time-travel
5d-diplomacy-with-multiverse-time-travel copied to clipboard
Quick and dirty background worker
Quick and dirty background worker and response compression to improve end-of-turn performance by hiding it under the rug for the moment.
Basically per quick analysis:
- last player submits orders
- This triggers the Adjudication calculations/etc, but this happened on the HTTP Request thread/stack
- This would/could block other requests from processing, (note: there are more than just one HTTP Request thread though) if such occurred a player would receive many events at once and the UI would probably be sad :( and have to first (on each client) "catch up" or re-re-re-re-draw the current new state, whichever won the request vs database races.
- These JSON responses get big fast, lets enable server-side compression by default and see how much this helps