Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: MessagePack-CSharp/MessagePack-CSharp
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.1.4
Choose a base ref
...
head repository: MessagePack-CSharp/MessagePack-CSharp
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 8 commits
  • 29 files changed
  • 5 contributors

Commits on Jul 18, 2025

  1. Use 'Write' instead of 'WriteInt32' for union type keys

    Union type keys set with are usually small positive integers, likely
    to fit in a single byte. As late as version 2.5.198, the library
    would encode [Union(0, typeof(Foo))] as two bytes 0x92 0x00 (one for
    "two-element array", and one for the 0 integer key), followed by the
    serialization of type Foo.
    
    In version 3.1.4, [Union(0, typeof(Foo))] is instead encoded as six
    bytes 0x92 0xD2 0x00 0x00 0x00 0x00 (one for "two-element array",
    one for "32-bit integer", and the four bytes of the 0 integer key).
    Although the two representations are compatible, for code bases that
    use many small polymorphic objects, the migration from 2.x to 3.x would
    lead to a significant increase in the size of the serialized data.
    
    This behavior is caused by the generated code for the interface using
    `WriteInt32` (which always encodes the integer as five bytes), and
    is fixed by instead using `Write` (which uses the smallest possible
    number of bytes for its argument).
    VictorNicollet committed Jul 18, 2025
    Configuration menu
    Copy the full SHA
    8351bec View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2025

  1. Remove unneeded GetTypeInfo() calls (#2206)

    * [WIP} Remove unneeded GetTypeInfo() calls
    
    Improve performcance by removing unneeded GetTypeInfo() calls
    
    * typeof(T) reuse
    
    * Remove AsType() calls
    
    * Revert IsSupportedType with TypeInfo
    
    * Fix code review remarks
    Bykiev authored Aug 17, 2025
    Configuration menu
    Copy the full SHA
    55b4d1a View commit details
    Browse the repository at this point in the history
  2. Use 'Write' instead of 'WriteInt32' for union type keys (#2212)

    Union type keys set with are usually small positive integers, likely
    to fit in a single byte. As late as version 2.5.198, the library
    would encode [Union(0, typeof(Foo))] as two bytes 0x92 0x00 (one for
    "two-element array", and one for the 0 integer key), followed by the
    serialization of type Foo.
    
    In version 3.1.4, [Union(0, typeof(Foo))] is instead encoded as six
    bytes 0x92 0xD2 0x00 0x00 0x00 0x00 (one for "two-element array",
    one for "32-bit integer", and the four bytes of the 0 integer key).
    Although the two representations are compatible, for code bases that
    use many small polymorphic objects, the migration from 2.x to 3.x would
    lead to a significant increase in the size of the serialized data.
    
    This behavior is caused by the generated code for the interface using
    `WriteInt32` (which always encodes the integer as five bytes), and
    is fixed by instead using `Write` (which uses the smallest possible
    number of bytes for its argument).
    AArnott authored Aug 17, 2025
    Configuration menu
    Copy the full SHA
    65e5b0f View commit details
    Browse the repository at this point in the history

Commits on Aug 18, 2025

  1. Fix various disposable issues

    This PR fixes a memory leak in Json Serializer and other small disposable issues
    Bykiev committed Aug 18, 2025
    Configuration menu
    Copy the full SHA
    f82f9eb View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2025

  1. Configuration menu
    Copy the full SHA
    5039498 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2025

  1. Merge pull request #2225 from T0PP1ng/fix-datetimeoffset-formatter

    Fix Incorrect DateTimeOffset Serializer
    AArnott authored Aug 22, 2025
    Configuration menu
    Copy the full SHA
    327711d View commit details
    Browse the repository at this point in the history
  2. Merge pull request #2224 from Bykiev/DisposableFixes

    Fix various disposable issues
    AArnott authored Aug 22, 2025
    Configuration menu
    Copy the full SHA
    aa4debf View commit details
    Browse the repository at this point in the history

Commits on Aug 31, 2025

  1. Merge pull request #2226 from khuongntrd/fix/recursive-generic-source…

    …-generation
    
    fix: prevent StackOverflow in Equals with recursive generic constraints
    khuongntrd authored Aug 31, 2025
    Configuration menu
    Copy the full SHA
    39e4a79 View commit details
    Browse the repository at this point in the history
Loading