Skip to content

[codec] Switch Default Encoding to Little-Endian #2781

@patrick-ogrady

Description

@patrick-ogrady

Modern processors are natively little-endian. By switching to Little-Endian encoding, we enable the compiler to emit direct load/store instructions rather than byte-swapping operations when reading data off the wire (~30-50% faster).

This also unblocks the creation of a zero-copy decoder that maps bytes directly into a struct in-memory (can't do this if types are represented as big-endian on a little-endian system).

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking-formatThis PR modifies codec and/or storage formats.

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions