Every time libpaf needs to know the lowest TTL for services it owns, it scans through the list.
For libpaf instances through which many services are published, this is a relatively time-consuming operation. It would be better to cache the lowest TTL, or keep a sorted structured of some sort, of all TTLs.
This improvement only affects protocol v3 mode.
Every time libpaf needs to know the lowest TTL for services it owns, it scans through the list.
For libpaf instances through which many services are published, this is a relatively time-consuming operation. It would be better to cache the lowest TTL, or keep a sorted structured of some sort, of all TTLs.
This improvement only affects protocol v3 mode.