[webkit-changes] [WebKit/WebKit] 6979d3: [GStreamer][WebRTC] Reduce memory allocations in P...

Philippe Normand noreply at github.com
Wed Dec 11 00:55:44 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 6979d3159534ec67c9a9192d6dd1bce8046601cd
      https://github.com/WebKit/WebKit/commit/6979d3159534ec67c9a9192d6dd1bce8046601cd
  Author: Philippe Normand <philn at igalia.com>
  Date:   2024-12-11 (Wed, 11 Dec 2024)

  Changed paths:
    M Source/WebCore/platform/mediastream/gstreamer/GStreamerRTPPacketizer.cpp
    M Source/WebCore/platform/mediastream/gstreamer/GStreamerRTPPacketizer.h

  Log Message:
  -----------
  [GStreamer][WebRTC] Reduce memory allocations in Packetizers
https://bugs.webkit.org/show_bug.cgi?id=284365

Reviewed by Xabier Rodriguez-Calvar.

Keep track of mid and rid values instead of fetching them from the corresponding RTP extensions
over and over when updating stats.

* Source/WebCore/platform/mediastream/gstreamer/GStreamerRTPPacketizer.cpp:
(WebCore::GStreamerRTPPacketizer::configureExtensions):
(WebCore::GStreamerRTPPacketizer::ensureMidExtension):
(WebCore::GStreamerRTPPacketizer::rtpStreamId const):
(WebCore::GStreamerRTPPacketizer::updateStatsFromRTPExtensions):
* Source/WebCore/platform/mediastream/gstreamer/GStreamerRTPPacketizer.h:

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



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


More information about the webkit-changes mailing list