Skip to content

Evaluate replacing dataclasses with msgspec #384

@ondrej-lukas

Description

@ondrej-lukas

Currently, we represent objects in the game (components) as dataclasses with manual serialization/deserialization. This library offers several benefits:

  • speed (it uses C backend, should be several times faster than now)
  • easier and safer serialziation
  • better type checking

https://jcristharif.com/msgspec/structs.html

Metadata

Metadata

Assignees

Labels

TaskTasks for internal useenhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions