mirror of
https://github.com/slackhq/nebula.git
synced 2025-11-23 00:44:25 +01:00
We noticed that the number of memory allocations LightHouse.HandleRequest creates for each call can seriously impact performance for high traffic lighthouses. This PR introduces a benchmark in the first commit and then optimizes memory usage by creating a LightHouseHandler struct. This struct allows us to re-use memory between each lighthouse request (one instance per UDP listener go-routine).
4.1 KiB
4.1 KiB