Skip to content

Drop unused bits at serialization #769

Description

@wismill

Consider to (optionally) drop some bits that are not used in the keymap, e.g. key types and interprets. Indeed, they would not impact the behavior of the resulting keymap in the client, but could cut a bit the serializing/parsing time. We should probably keep all the keycodes though, even if not mapped.

Together with #640, this would create a “minimized” serialization of the keymap.

I would make it the default, except in tools where we want to have the whole keymap by default.

Another approach is to do it at compilation time, and then rely on making all properties explicit. But I am not sure it makes the keymap serialization shorter or later parsing faster though.

Activity

  1. added theissue type on May 14, 2025
  2. added this to the 1.12.0 milestone on Aug 9, 2025
  3. added a commit that references this issue on Feb 8, 2026
  4. added a commit that references this issue on May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    keymap compilerIndicates a need for improvements or additions to keymap compilationperformance

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions