John did more work on his PHP extensions. I find research into performance tuning and benchmarking fascinating. By using the C version of one of his PHP functions John gained a 75% increase in speed! Excellent!
John, can you try both PHP code and C code with PHP Accelerator or some other opcode caching tool? I guess the accelerator won’t affect performance of the C extension, but it may work well on your PHP loops. (but I doubt anywhere near the 75% you experienced with C!)