Skip to content

Performance: replace bools in Response with bit-sets #3862

@emilk

Description

@emilk

Response is 88 bytes large. Around 26 bytes of that is because of as many bools, which could be combines into a few bit-sets instead of 4 bytes.

This also includes Sense which has the same problem.

We also have several; [bool; NUM_POINTER_BUTTONS] which could be replaced with a bit-set each (PointerButtons or something).

Ideally we could solve this in an ergonomic way without any additional additional dependencies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions