- Refactored string serialization for performance: ASCII-optimistic encode, single pass, and minimal shifting; extracted string interning logic to TryWriteInternedString for both runtime and SGen paths. - Updated AcBinarySerializer buffer writes to use BufferAt helper, removing redundant bounds checks. - Enhanced CLI argument parsing to support multiple args and charset selection; unknown args now emit warnings. - Switched all test data generation from Hungarian to English. - Benchmark report now includes .NET runtime version. - Cached MinStringInternLength in AcBinaryDeserializer for performance. - Minor BinaryTypeCode flag refactor and doc improvements. - Added BINARY_ISSUES.md entry for FastWire string interning/ref handling desync bug. |
||
|---|---|---|
| .. | ||
| Compression | ||
| GeneratedWriters | ||
| Serialization | ||
| TestModels | ||
| AyCode.Core.Tests.csproj | ||
| GlobalUsings.cs | ||
| JsonExtensionTests.cs | ||
| README.md | ||
| TestModelBase.cs | ||
README.md
AyCode.Core.Tests
MSTest unit tests for AyCode.Core serialization, compression, and utilities. Covers binary/JSON round-trips, reference handling, nullable types, source generator integration, and performance benchmarks.
Folder Structure
| Folder | Purpose |
|---|---|
Serialization/ |
Binary and JSON serialization tests (20+ test classes) |
Compression/ |
GZip compression tests |
TestModels/ |
Shared test entities, enums, data factories, SignalR infrastructure |
GeneratedWriters/ |
Hand-written source generator output examples |
Key Files (Root)
GlobalUsings.cs— Global MSTest using.TestModelBase.cs— Abstract base for test models with configuration support.JsonExtensionTests.cs— JSON extension method tests.
Dependencies
| Dependency | Purpose |
|---|---|
MSTest |
Test framework |
MessagePack |
Serialization comparison |
MemoryPack |
Serialization comparison |
MongoDB.Bson |
BSON comparison |