mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 03:20:11 +01:00
We now have a cached list of NMSettingsConnection instances, sorted by their autoconnect priority. However, the sort order nm_settings_connection_cmp_autoconnect_priority() depends on various properties of the connection: - "connection.autoconnect" and "connection.autoconnect-priority" - the timestamp - "connection.uuid" These properties almost never change, so it's a waste that every call to nm_settings_get_connections_sorted_by_autoconnect_priority() needs to check whether the sort order is still satisfied. We can do better by tracking when the sort order might have been destroyed and only check in those (much fewer) cases. Note that we end up calling nm_settings_get_connections_sorted_by_autoconnect_priority() a lot, so this makes a difference. |
||
|---|---|---|
| .. | ||
| plugins | ||
| nm-agent-manager.c | ||
| nm-agent-manager.h | ||
| nm-secret-agent.c | ||
| nm-secret-agent.h | ||
| nm-settings-connection.c | ||
| nm-settings-connection.h | ||
| nm-settings-plugin.c | ||
| nm-settings-plugin.h | ||
| nm-settings-storage.c | ||
| nm-settings-storage.h | ||
| nm-settings-utils.c | ||
| nm-settings-utils.h | ||
| nm-settings.c | ||
| nm-settings.h | ||