2
0
mirror of https://github.com/status-im/consul.git synced 2025-03-03 06:40:45 +00:00
Lincoln Stoll 3605fde865
perf: Remove expensive reflection from raft/mesh hot path ()
* perf: Remove expensive reflection from raft/mesh hot path

Replaces a reflection-based copy of a struct in the mesh topology with a
deep-copy generated implementation.

This is in the hot-path of raft FSM updates, and the reflection overhead was a
substantial part of mesh registration times (~90%). This could manifest as raft
thread saturation, and resulting instability.

Co-authored-by: Joel Brandhorst <joel.brandhorst@gmail.com>

* add changelog

---------

Co-authored-by: Joel Brandhorst <joel.brandhorst@gmail.com>
Co-authored-by: John Murret <john.murret@hashicorp.com>
2023-05-26 11:42:05 -06:00

4 lines
90 B
Plaintext

```release-note:improvement
raft: Remove expensive reflection from raft/mesh hot path
```