Closed Bug 1580524 Opened 5 years ago Closed 5 years ago

Free conduits when transceiver is stopped

Categories

(Core :: WebRTC: Audio/Video, enhancement, P2)

enhancement

Tracking

()

RESOLVED FIXED
mozilla71
Tracking Status
firefox71 --- fixed

People

(Reporter: dminor, Assigned: dminor)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

Once a transceiver is stopped it will never be restarted, so we should be able to free up the underlying webrtc.org objects at that point. This should help with stopped transceiver memory usage.

Priority: -- → P2

Freeing the conduits when the transceiver is stopped releases all of the
associated webrtc.org objects which results in substantial memory savings.

On my system, with an opt+debug build and 200 stopped transceivers, I see
373.17 MB of memory use in the content process without this patch, and
158.93 MB of memory use with this patch applied.

Going further and calling Shutdown_m as part of Stop() reduces the memory
use to 157.98 MB, which seems like a marginal improvement at the cost of
a much larger risk of introducing bugs.

Pushed by dminor@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/598d441e4eba Free conduits when transceiver is stopped; r=bwc
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla71
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: