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
perf(serializer): optimize polymorphic type resolution with multiple strategies
- Add sealed type optimization: skip polymorphic path entirely for sealed types (JIT-eliminated)
- Reorder type checks: verify inline cache before base type for batched data
- Implement double-pointer dereference for .NET 5.0+: read RuntimeTypeHandle.Value directly from object header to avoid expensive GetType() virtual call
- Apply sealed type optimization to both serializer and deserializer
Performance improvements:
- Sealed types: zero GetType() overhead
- Batched homogeneous data: inline cache hits after first item
- .NET 5.0+: no GetType() call for polymorphic serialization
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0 commit comments