Optimization of code for maximum speed, very specific project.

Working?! Already! Excellent!

I was fun to help with a well-defined, well-expressed problem with existing well-commented code, and someone who was responsive to the suggestions made. MUCH better than all the "Is a MEGA too slow to handle 32 channels of dimming? Do I need a Due?" questions that result in an extended "discussion" of 8 vs 32 bit cpus, during which the original poster disappears...