Files
lightning/common
Rusty Russell 0b7897302e common/gossip_store: optimize case where entries are filtered out.
@whitslack complained of large CPU usage by connectd at startup;
I ran perf record on connectd on my machine (which sees a little spike, only)
and I see the cost of reading and discarding the entries:

```
-   95.52%     5.24%  lightning_conne  lightning_connectd  [.] gossip_store_next
   - 90.28% gossip_store_next
      + 40.27% tal_alloc_arr_
      + 22.78% tal_free
      + 11.74% crc32c
      + 9.32% fromwire_peektype
      + 4.10% __libc_pread64 (inlined)
        1.70% be32_to_cpu
```

Much of this is caused by the search for our own gossip: keeping this separately
would be even better, but this fix is minimal.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: connectd: reduce initial CPU load when connecting to peers.
2022-06-24 10:33:04 +09:30
..
2021-11-14 18:49:46 +01:00
2020-09-23 16:30:36 +09:30
2020-04-04 16:08:49 +10:30
2021-10-10 13:22:29 +02:00
2020-04-04 16:08:49 +10:30
2020-04-04 16:08:49 +10:30
2022-04-02 09:40:18 +10:30
2022-04-02 09:40:18 +10:30
2021-12-30 14:36:55 +10:30
2020-02-05 14:19:12 +01:00
2018-02-08 22:49:34 +01:00
2022-02-27 07:44:26 +10:30
2020-01-23 16:17:42 +10:30
2022-01-20 15:24:06 +10:30
2022-01-20 15:24:06 +10:30
2019-04-16 21:22:13 +00:00
2022-01-20 15:24:06 +10:30
2020-10-20 12:50:31 +10:30
2021-10-15 12:09:36 +02:00
2021-10-15 12:09:36 +02:00