You are not logged in.
A completely rewritten parser just landed in the 4.0 development tree
<txp:if_section="something"> do this <txp:else /> <txp:if_section="different"> do that <txp:else /> and otherwise do this </txp:if_section> </txp:if_section>
<txp:tag attribute="'single' ""double"" quoted" /> <txp:tag attribute='''single'' "double" quoted' /> <txp:tag attribute="< > ' &" />
Wrong: <txp:tag attribute=value />
<txp:tag not_parsed="value" parsed='<txp:sometag attr="value" />' />
The new core parsing function (parse) is 50-100% slower than the old parser, but since 4.0.6, several other parsing related functions have been optimized for speed. I did a few tests with a fresh TXP install. Compared to 4.0.6, runtime (minus query time) was actually 5% faster! The actual speed difference will probably vary depending on how complex (tag nesting level) your templates are, but I don’t expect dramatic speed differences with 4.0.6.
Since this is a rather big change for what we’d like to think of as a stable TXP version, it could really benefit from some testing.
Last edited by ruud (2008-04-19 18:17:07)
This is great, when I have a chance I’ll test nesting on a local site and let you know.
Updated a live site, set it to testing and got the warning errors for unquoted attributes, fixed a form all is well.
Should of timed the site before I updated but I notice no slowdown and all is working fine.
Chuck it in 4.0.7
(I sometimes wish – not often, but I do now – we had smilies on this forum, and not those simple subtle ones but the big and ugly ones, you know, like this: )
I’ll try and test it as soon as possible!
Oh my!!! :)
I have it installed and there are no errors and all seems to be working fine. Haven’t tried any “nesting” or “tags-within-tags” yet as, oddly, I don’t seem to be doing anything that needs it. Yet. I shall do some testing.
Last edited by thebombsite (2008-04-19 21:50:42)
Next improvement must be caching :)
Providing help in hacking ATM! Come to courses and don’t forget to bring us notebook and hammer! What for notebook? What a kind of hacker you are without notebok?