You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor and optimize memory handling across SIPSorcery using Span APIs
Enhanced performance and memory efficiency throughout the SIPSorcery project by replacing traditional byte array handling with Span<byte> and ReadOnlySpan<byte> in multiple components, including RTCP, SCTP, and AudioEncoder classes.
Refactored packet parsing and serialization logic using BinaryPrimitives for endian conversions, and updated NetConvert accordingly.
Introduced utility methods in EncodingExtensions, TypeExtensions, BinaryOperations, and MemoryOperations to streamline string, byte array, and endian-aware operations.
Marked legacy methods as obsolete to guide migration to span-based APIs.
Updated SIPSorcery.csproj to include System.Memory and Microsoft.Bcl.HashCode packages, and enabled AllowUnsafeBlocks for performance-critical code paths.
logger.LogWarning("RTP ICE channel has both "+nameof(MdnsGetAddresses)+" and "+nameof(MdnsGetAddresses)+" set. Only "+nameof(MdnsGetAddresses)+" will be used.");
2579
+
logger.LogWarning("RTP ICE channel has both "+nameof(MdnsGetAddresses)+" and "+nameof(MdnsGetAddresses)+" set. Only "+nameof(MdnsGetAddresses)+" will be used.");
0 commit comments