m-default-nodes{-api}: optimize for event-stack

- Sharpen the hooks, so that they are called only when needed.
- Make settings live, apply them when they are changed.
- Remove the state saver after events hook, call it directly.
- Remove the settings bookkeeping as the gobject properties.
- Remove the scheduling of default-nodes-changed signal via core.
This commit is contained in:
Ashok Sidipotu
2022-08-30 11:47:43 +05:30
committed by Julian Bouzas
parent a5a6300662
commit a060c6a130
5 changed files with 215 additions and 237 deletions

View File

@@ -326,8 +326,7 @@ wp_event_source_dispatch (GSource * s, GSourceFunc callback, gpointer user_data)
g_steal_pointer (&lhook));
event->hooks_chain = build_chain (name, priority, event->hooks_chain);
wp_trace_object (d, "running hook <%p>(%s) and hooks chain (%s)", hook, name,
event->hooks_chain);
wp_trace_object (d, "running hook <%p>(%s)", hook, name);
if ((event == d->rescan_event) &&
(type == WP_EVENT_HOOK_EXEC_TYPE_AFTER_EVENTS_WITH_EVENT)) {