Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 098750050ead7a58b0424eb9113fa554be8bafb7
      
https://github.com/WebKit/WebKit/commit/098750050ead7a58b0424eb9113fa554be8bafb7
  Author: Carlos Garcia Campos <[email protected]>
  Date:   2025-11-17 (Mon, 17 Nov 2025)

  Changed paths:
    M Source/WTF/wtf/CMakeLists.txt
    A Source/WTF/wtf/OptionCountedSet.h
    M Source/WTF/wtf/RunLoop.h
    M Source/WTF/wtf/glib/RunLoopGLib.cpp
    M Tools/TestWebKitAPI/CMakeLists.txt
    A Tools/TestWebKitAPI/Tests/WTF/OptionCountedSet.cpp

  Log Message:
  -----------
  [GLIB] Skip run loop observer notifications earlier for activities with no 
observers registered
https://bugs.webkit.org/show_bug.cgi?id=302392

Reviewed by Nikolas Zimmermann.

We currently don't use Activity::AfterWaiting but on every run loop
iteration we iterate the observers again after waiting for sources to
check if there's any to notify. We could keep a count of observers
registered for every activity and early return from
RunLoop::notifyActivity when the given activity doesn't have observers
registered. This patch adds a new class OptionCountedSet with the
minimum API to help with this.

Tests: Tools/TestWebKitAPI/Tests/WTF/OptionCountedSet.cpp
Canonical link: https://commits.webkit.org/303110@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to