Has anyone done any performance comparisons between what one might
call the 'program' vs 'interjection' models?
What I'm calling the 'program' model is putting a '<?php' invocation
at the top of the page, a '?>' exit at the bottom, and doing all the
html output via echo statements.
The 'interjection' model, in contrast, repeatedly invokes php for
minimal periods instead, so instead of one mass of php code, the same
amount of code is in smaller pieces and laced in and out of the html.
The interpreter must look at everything regardless, but I'm wondering
whether there's significantly more overhead one way than the other.
From the fact that 'echo' isn't actually a function, my guess is that
the overhead might be a wash, but does anyone know of any actual
performance tests?
Margaret
--
(To mail me, please change .not.invalid to .net, first.
Apologies for the inconvenience.)