-
Notifications
You must be signed in to change notification settings - Fork 2k
Performance: replace bools in Response with bit-sets #3862
Copy link
Copy link
Closed
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededperformanceLower CPU/GPU usage (optimize)Lower CPU/GPU usage (optimize)
Milestone
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededperformanceLower CPU/GPU usage (optimize)Lower CPU/GPU usage (optimize)