Apothem
02-02-2010, 05:02 AM
By Performance, I mean speed + memory load.
Template denotes some sort of file that is to be eval'd
Example:
template/index.eh
...
<body>
<div id="content">
<h2 class="title">|title|</h2>
<div class="post">|post|</div>
</div>
</body>
...
Which in turn would be be obtained via something like file_get_contents(), regular-expression-replaced to {$title} and such, and eval'd to output a basic HTML page.
So my question is, will this method be have a large performance impact on a server vs a normal <?php echo $title; ?> or not? In what circumstances will this cause the server's performance to drop (i.e. will lots of visitors cause it to decrease or what?)
Template denotes some sort of file that is to be eval'd
Example:
template/index.eh
...
<body>
<div id="content">
<h2 class="title">|title|</h2>
<div class="post">|post|</div>
</div>
</body>
...
Which in turn would be be obtained via something like file_get_contents(), regular-expression-replaced to {$title} and such, and eval'd to output a basic HTML page.
So my question is, will this method be have a large performance impact on a server vs a normal <?php echo $title; ?> or not? In what circumstances will this cause the server's performance to drop (i.e. will lots of visitors cause it to decrease or what?)