Re: compiling into native php?
| From: | Monte Ohrt | Date: | Mon, 04 Feb 2002 19:38:44 +0000 |
| Subject: | Re: compiling into native php? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2641@lists.php.net to get a copy of this message | ||
This thought has been pondered before but it didn't seem too worthwhile,
at least not in Smarty's current form. This would require an entire
rewrite and rethink of how the template engine works. You're saying that
the compiled templates should be "stand alone", and executable directly
instead of through Smarty, yes? After starting to piece this idea
together, it seems that in the end we aren't gaining much more footage
than with what we have now.
Another addition to this idea would be help from Apache, so if you call
a URL that doesn't exist, the file gets created and executed instead of
a "file not found" error. THen the next hit to that URL doesn't incurr
any overhead, it just executes.
Monte
Ulf Wendel wrote:
>
> Hi,
>
> without looking at the source I wonder if there's any chance to let
> smarty compile native php code in a future version. "native" means a php
> file which does not include a smarty class but only the required user
> defined functions/modifiers. As you know the word "include" is what hits
> performance most...
>
> Ulf
>
> --
> Jobgesuch: Anwendungsentwicklung, Schwerpunkt PHP in HH
> Berufserfahrung, Kongressannahmen... http://www.ulf-wendel.de
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
http://www.ispi.net/