[webkit-changes] [WebKit/WebKit] 5114b7: [GStreamer] String allocations in webkitGstTracePr...

Philippe Normand noreply at github.com
Mon Jun 19 01:46:23 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 5114b739ade935af7e48a1228c39226845ddf314
      https://github.com/WebKit/WebKit/commit/5114b739ade935af7e48a1228c39226845ddf314
  Author: Philippe Normand <philn at igalia.com>
  Date:   2023-06-19 (Mon, 19 Jun 2023)

  Changed paths:
    M Source/WebCore/platform/graphics/gstreamer/VideoFrameMetadataGStreamer.cpp

  Log Message:
  -----------
  [GStreamer] String allocations in webkitGstTraceProcessingTimeForElement() could be reduced
https://bugs.webkit.org/show_bug.cgi?id=258206

Reviewed by Carlos Garcia Campos.

We no longer allocate strings for each element being traced for processing times. Without this
patch, one additional string was allocated per pad probe callback invocation, which is an obvious
hotspot.

* Source/WebCore/platform/graphics/gstreamer/VideoFrameMetadataGStreamer.cpp:
(webkitGstTraceProcessingTimeForElement):

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




More information about the webkit-changes mailing list