Articles
Although I think in numbers there are times when I just write, it doesn’t happen very much but it does occur at times. I target what I write to fellow technology developers and designers as it allows me to describe the things that I am thinking without needing to “dumb them down” too much. If you have any questions or feedback about any of these articles feel free to contact me, the more feedback I receive the better the chances of me writing more often will become.
All articles tagged with “Benchmark”
Strings vs Output Buffering in PHP3rd July, 2006
When working with programming project, both large and small, it is a good technique to split data representation and output into separate parts of the program. For website content management systems the section of code that generates the actual output of the page is commonly called a template, theme or skin engine. These all work in the same basic way, they receive a data stream and output HTML code. Now, in PHP there are multiple ways of parsing strings so this means that the data stream can be converted in multiple ways. Which way is the best way?
I did a little bit of research in this area to find out if it was more efficient to let the template engine output the HTML code directly and capture it using output buffering to make a cache of it or to make the engine generate a string that could be cached directly and also sent to the visitor. Here are my findings.