WLED icon indicating copy to clipboard operation
WLED copied to clipboard

Change presets.json logic to not need to repeat {"stop":0} 1,000's of times

Open freakintoddles2 opened this issue 1 year ago • 6 comments

Is your feature request related to a problem? Please describe. When saving and updating presets, it starts taking longer and longer, and corrupted saves more common the more presets I have. I notices in the json that {"stop":0}, is repeated a LOT. In my current presets.json where I have around ~50 saved presets, it is repeated a whopping 1,170 times!

Describe the solution you'd like I appreciate all the work you all put into this, but I have to imagine there is a more elegant way to do whatever {"stop":0}, is doing without repeating it so many times in the json. This would help cut down the size of the presets.json file a lot, and reduce the error rate when saving new presets.

Describe alternatives you've considered n/a

Additional context n/a

Thank you for your ideas for making WLED better!

freakintoddles2 avatar Aug 22 '23 20:08 freakintoddles2