gnome-shell/js
Christian Hergert f597a0a11c util: cache local GTimeZone
This ensures that we do not create a new GTimeZone with
g_time_zone_new_local() repeatedly. Currently, that will cause GTimeZone
to open(), mmap() and parse /etc/localtime while on the main thread.

We already track timezone changes, so we can cache this value and reuse
it if we:

 1) Clear the cache when timezone changes
 2) Use the only GDateTime API available to us here, which means we
    imply the current time. But this is how environment.js uses the
    date and time anyway, so no loss.

We maintain the old form for plugin compatibility.

https://gitlab.gnome.org/GNOME/gnome-shell/issues/2279
2020-02-26 23:12:22 -08:00
..
extensionPrefs cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
gdm gdm, util: Always allow to retry login in unlock mode 2018-07-25 20:38:58 +00:00
misc ibusManager: Don't pass undefined callback to ibus 2019-01-21 16:28:20 +00:00
perf cleanup: Use arrow notation for anonymous functions 2018-02-21 13:55:00 +00:00
portalHelper cleanup: Use Function.prototype.bind() 2018-02-21 13:55:02 +00:00
ui util: cache local GTimeZone 2020-02-26 23:12:22 -08:00
js-resources.gresource.xml thunderbolt: add policy provider and indicator 2018-02-05 21:38:49 +01:00
meson.build build: Support the meson build system 2017-07-20 00:20:54 +02:00