Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 70f5a9c09ae45cc844e5b87654577e0183f1ae09
      
https://github.com/WebKit/WebKit/commit/70f5a9c09ae45cc844e5b87654577e0183f1ae09
  Author: Nathan Solomon <[email protected]>
  Date:   2025-03-13 (Thu, 13 Mar 2025)

  Changed paths:
    M Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.messages.in

  Log Message:
  -----------
  Use StreamBatched for ReleaseDecomposedGlyphs IPC stream send
https://bugs.webkit.org/show_bug.cgi?id=289551
rdar://146775570

Reviewed by Kimmo Kinnunen.

The RenderObject destructor takes up a considerable number of samples on
traces. As a part of the RenderObject destruction, we remove entries
from the GlyphDisplayListCache. Deleting each RenderingResource causes
an IPC::StreamClientConnection::send() to occur to notify the GPU process
to “ReleaseDecomposedGlyphs”. On traces, we see that
"semaphore_signal_trap @ libsystem_kernel.dylib" is the bottleneck of this 
function.

The WebContent Process calls signal() on a semaphore in a shared buffer
between the two processes. The signal() call will wake up the GPU
process which is waiting on the semaphore. Use StreamBatched to
delay calling signal() until a max consecutive “StreamingBatched”
message count is met to then call signal().

This is a performance improvement.

* Source/WebKit/GPUProcess/graphics/RemoteRenderingBackend.messages.in:

Canonical link: https://commits.webkit.org/292098@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to