NetworkManager/src/settings
Thomas Haller 8a78493de1 settings: cache keyfile databases for "timestamps" and "seen-bssids"
Only read the keyfile databases once and cache them for the remainder of
the program.

- this avoids the overhead of opening the file over and over again.

- it also avoids the data changing without us expecting it. The state
  files are internal and we don't support changing it outside of
  NetworkManager. So in the base case we read the same data over
  and over. In the worst case, we read different data but are not
  interested in handling the changes.

- only write the file when the content changes or before exiting
  (normally).

- better log what is happening.

- our state files tend to grow as we don't garbage collect old entries.
  Keeping this all in memory might be problematic. However, the right
  solution for this is that we come up with some form of garbage
  collection so that the state files are reaonsably small to begin with.
2019-05-07 16:41:21 +02:00
..
plugins ifcfg-rh: support serializaing all possible values for ethernet.s390-options (OPTIONS) 2019-04-25 09:26:35 +02:00
nm-agent-manager.c shared: build helper "libnm-libnm-core-{intern|aux}.la" library for libnm-core 2019-04-18 20:07:44 +02:00
nm-agent-manager.h core/dbus: rework D-Bus implementation to use lower layer GDBusConnection API 2018-03-12 18:37:08 +01:00
nm-secret-agent.c all: don't use gchar/gshort/gint/glong but C types 2018-07-11 12:02:06 +02:00
nm-secret-agent.h core: refactor NMSecretAgentCallId typedef not to be a pointer to struct 2017-11-24 16:24:40 +01:00
nm-settings-connection.c settings: cache keyfile databases for "timestamps" and "seen-bssids" 2019-05-07 16:41:21 +02:00
nm-settings-connection.h settings: cache keyfile databases for "timestamps" and "seen-bssids" 2019-05-07 16:41:21 +02:00
nm-settings-plugin.c settings: make NMSettingsPlugin a regular GObject instance and not an interface 2018-09-06 07:41:22 +02:00
nm-settings-plugin.h settings: cleanup loading settings plugins 2018-09-06 07:41:22 +02:00
nm-settings.c settings: cache keyfile databases for "timestamps" and "seen-bssids" 2019-05-07 16:41:21 +02:00
nm-settings.h settings: cache keyfile databases for "timestamps" and "seen-bssids" 2019-05-07 16:41:21 +02:00