Skip to content

Conversation

@paulomorgado
Copy link
Contributor

Builds upon #1414

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.
@paulomorgado paulomorgado force-pushed the memory1.1 branch 2 times, most recently from f8bde60 to 8d13370 Compare May 30, 2025 10:49
@paulomorgado paulomorgado force-pushed the memory1.1 branch 4 times, most recently from b2a8ed8 to 120926c Compare June 7, 2025 22:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant