Is it possible to strip out unnecessary parts of the FastLED Library to reduce

Is it possible to strip out unnecessary parts of the FastLED Library to reduce it’s size and allow for more memory to available for my code? I know what kind of LEDs I am using, so do i need all the templates for other LEDs or chipsets?
Im driving 60 ws2812b LEDs from a Trinket 5v board and the following 8 lines of code takes up almost 2/3 of the available storage space!

#include<FastLED.h>
CRGB leds[60];
void setup() {
FastLED.addLeds<WS2812B,1,GRB>(leds, 60).setCorrection(TypicalLEDStrip);
FastLED.setBrightness(96);
}
void loop(){
FastLED.show();
FastLED.delay(1000/120);
}

“Sketch uses 3398 bytes (63%) of program storage space. Maximum is 5310 bytes. Global variables use 277 bytes of dynamic memory.”

The DemoReel100 default sketch is 114% of program storage space. I also understand that I could try a higher capacity dev board, but I dont have one atm, and the trinket is perfectly sized for what I am doing.

I’ve tried stripping out all the 4-pin LEDs (anything with a clock pin), matrices, dmx, spi, and more, however I am hardly making a dent. I know the math and colorutils libraries are relatively large, but I really just want to remove superfluous or wasted information.

Any assistance would be appreciated.

The compiler automatically only includes the code you use, which is why removing unused source code doesn’t make any difference; the compiler and linker are already doing that.

The trinket (non-pro version) just barely has any storage and isn’t really good for much beyond blinking a small number of LEDs in a small number of ways. The Trinket Pro has more space (and a hardware multiplier, which saves a lot of code space, and improves speed, even at the same MHz).

What’s the intended application you’re working on?

@Mark_Kriegsman Well, now I know more about compilers… :confused: I actually won this trinket from a hack-a-day contest when it was released. Now that Ive finally used it, I’ll probably grab a pro and m0 soon.

This project is just a ring of leds backlighting a circular laser-etched mirror with my friends brewery logo on it. Their tasting room opened yesterday, but it was too packed for me to get it on the wall. :stuck_out_tongue: