Debulk LED structs #65
Labels
design
Discussing larger design and architecture ideas
e/performance
Changes intended to improve performance
Milestone
Right now, Leds are represented as follows:
Meaning each takes up 56 bytes. At this scale, to represent a setup of 500 leds, 28 kilobytes of memory are required. Combine that with heavy memory footprint of the Sled struct and we run the risk of requiring more memory than some microcontrollers will be able to provide.
Decreasing the size of each LED struct make require more computational work in other places, but will make LEDs more cache friendly and therefore faster to iterate over.
There are a handful of trade-off options but here's what I'm considering:
The smaller size for index and segment should have benefits all around. Filters should be smaller (and therefore Drivers), Sled gets a bit less bulky, etc etc.
The text was updated successfully, but these errors were encountered: