|The stupid question is the question not asked|
Node Parser too slow?by BioHazard (Pilgrim)
|on Nov 04, 2002 at 16:07 UTC||Need Help??|
BioHazard has asked for the
wisdom of the Perl Monks concerning the following question:
At present I am creating a web-based intranet post/reply system which will use an amended node syntax of the type showing by "displaytype=xml".
Below there is an example node and the method which is used for parsing these nodes.
As you can see whenever there is a "child" detected, a new instance of the sub parseNode is called and a template output will be returned. At the very end, all nodes (main node and children) are parsed "together" in the correct order and the HTML Output can be printed.
But now I am not sure if those new instances of parseNode() will be too slow (i.e. a post with 25-30 replies). I tried to return only the template object to save a bit of RAM but that doesn't seem to do the trick. By now I do not have the possibility to make an intensive test of my script but I hope it will be fast enough at least in the local area network.
Do you have any suggestions how to integrate the children-nodes more elegantly?
Thank you for your help an sorry about my bad English.
P.S.: I am using XML::Simple and HTML::Template.
Here's the node:
reading between the lines is my real pleasure