lightning
lightning copied to clipboard
common/msg_queue: use a linked list, not an array.
We've had a report of connectd using a lot of CPU in memmove. This seems to be a large queue, so:
- Use a linked list for the queue for O(1) efficiency.
- Print a backtrace the first time a queue passes 100000 entries.
Fixes: #7757