Skip to content
Commit d8c158e7 authored by Richard Hughes's avatar Richard Hughes
Browse files

Create a reference to a GnomePnpIds object to speed up loading

During loading, the singleton GnomePnpIds is created and destroyed 3 times
during startup. This means that the pnp.ids is loaded from disk each time and
re-parsed.

Whilst loading it from disk subsequent times is fast, parsing is not.
By keeping a reference at daemon startup ensures it's only loaded and unloaded
once per daemon startup-shutdown.

This speeds up startup of gnome-settings-daemon by about 400ms.
parent 2b348db7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment