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)
Offline
My brain just peed itself. So sweet. Thank you.
So, anyway.
When can we expect 4.0.7? :)
Kevin
graphicpush
Offline
Damn, revision 2860 looks nice, also nice to see little bigger changes for a while :) Must test it out on testserver.
Rah-plugins | What? I’m a little confused… again :-) <txp:is_god />
Offline
Ruud,
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.
Thanks.
Offline
Awesome.
Chuck it in 4.0.7
Offline
Speechless…
(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!
<txp:Els /> ;)
Tag Reference | Unexpected behaviour? Check the tag trace | Still no clue? Check the names of your custom fields
Offline
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)
Stuart – The Bombsite – ProText Themes – Textgarden
In a Time of Universal Deceit
Telling the Truth is Revolutionary.
Offline
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?
Offline
this is a much anticipated improvement. Thanks ruud.
neme.org | neme-imca.org | hblack.net | LABS
Offline