Performance question: 4 versions of same sketch

Hmmm... can't really blame you Robin. I'll have a think about something else simpler. But in the meantime, if you read one of the sketches, you have pretty much read them all. The only significant differences are the size of variables (unsigned char, int, long, long long) and the swapbytes () function.