After answering a post today, OP said to me:
Actually, my real code is not as short as it looks in this demo code. I am not allowed to post the real code for some privacy reasons of the company I work for.
That's after I taking the trouble of actually testing his sketch and timing his execution. I ended working in a posted problem that it is not the real problem. Total waste of time, IMHO.
What must be this site politics with question that involved secret components?