Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
NEW FEATURES:
PERFORMANCE OPTIMIZATIONS:
Memory Management:
PooledSegmentedBuffer<T>for efficient buffer pooling withArrayPool<T>integrationMemoryOperationshelper for optimized memory operationsValueStringBuilderfor stack-allocated string building to reduce heap allocationsSearchValuesfor optimized span-based searchingenumusage.Socket and Network Layer:
NetServiceswith connection pooling and reduced allocationsSocketConnectionabstraction with concrete implementations (SocketTcpConnection,SocketUdpConnection,SocketTlsConnection) for better resource managementIPSocketwith span-based parsing and reduced string allocationsPortRangewith improved allocation patternsSystem Utilities:
BinaryOperationsfor bit manipulation optimizationsEncodingExtensionsfor efficient encoding/decoding operationsHashExtensionsfor streamlined hash computationsCrypto and Security:
SslClientAuthenticationOptionsandSslStreamExtensionsfor down-level targetsData Serialization:
SipSorceryJsonSerializerContextfor AOT-friendly JSON serializationJSONWriterandJsonParserin favor ofSystem.Text.JsonProtocol Implementations:
ValueStringBuilderCodec Optimizations:
AudioEncoderwith more efficient buffer handlingHIGH-PERFORMANCE LOGGING:
Structured Logging Infrastructure:
LoggerMessageAttributesource generator pattern across all modulesBenefits:
MODERNIZATION:
BouncyCastleExtensionsfor down-level targetsRETARGETING:
SUPPORTING CHANGES:
Type System:
TypeExtensionsIByteSerializableinterface for consistent serializationProtocolTypeExtensionsfor protocol type handlingTesting:
Supersedes #1335, #1338, #1407, #1414, #1423