Not sure if this is a joke or not. Ask your operating system to improve the performance of opening 26000 files Or use a different file system, or put the entire directory on a ramdisk
132500 seconds to loop through all the colors which is 1.5 days (assuming 1 color change per 5sec, which is my knowledge as how often you can change color)