dendrite/federationapi
Neil Alexander 57320897cb
Federation API workers for /send to reduce memory usage (#1897)
* Try to process rooms concurrently in FS /send

* Clean up

* Use request context so that dead things don't linger for so long

* Remove mutex

* Free up pdus slice so only references remaining are in channel

* Revert "Remove mutex"

This reverts commit 8558075e8c9bab3c1d8b2252b4ab40c7eaf774e8.

* Process EDUs in parallel

* Try refactoring /send concurrency

* Fix waitgroup

* Release on waitgroup

* Respond to transaction

* Reduce CPU usage, fix unit tests

* Tweaks

* Move into one file
2021-07-02 12:33:27 +01:00
..
api Change how servers are selected for missing auth/prev events (#1892) 2021-06-30 12:05:58 +01:00
routing Federation API workers for /send to reduce memory usage (#1897) 2021-07-02 12:33:27 +01:00
federationapi_test.go Change how servers are selected for missing auth/prev events (#1892) 2021-06-30 12:05:58 +01:00
federationapi.go Change how servers are selected for missing auth/prev events (#1892) 2021-06-30 12:05:58 +01:00