You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Jozsa Kristof <dy...@kami.vein.hu> on 2002/02/12 21:43:47 UTC

Benchmarking: Where to place html tags?

Hi,

I've continued benchmarking.. I have an old sitemap, with my old xml and xsl
files from about 1.5 weeks ago, and have a new bunch of stuff with
redesigned structure from recent days. It clearly turns out, that the new
structure is about 4-5 times slower generally, than the old one (I've used
Apache JMeter extensively to prove this).

The real difference is between the two setups, that in the old setup, html
tags were added by the xsl files when transforming static and generated XML
files; while in the new setup, I've moved all the html tags into the xml
files directly (for better readability), which are getting transformed by
xslt _several_ times.

I have a suspicion, that this can increase the general site lag which I've
experienced. In my theory, under the several transformations, every html tag
was getting processed in the xml files, while when they're added only during
the transformation, they're not processed; and this makes the huge
difference between the two setup.

I can't make sure whether my theory is right, so let me ask two questions:

- Generally, (in 'best practices'), plain html tags where should be added to
the static and generated xml files? I think in 2-3-4 levels of aggregated
content here.. maybe should the be placed as CDATA to avoid further
processing, therefore speeding up content generation?

- Is that possible, that only processing those html tags needlessly during
pipelines processing and aggregation about ~8-10-12 times can cause the
speed difference between my old and new site structure? I'm talking about
eg. 220ms vs 1210ms in rendering /index on my site..

thanks,
Christopher

ps. the aggregation slowness had not been solved yet, what I've explained in
my past mails subjected 'Benchmarking aggregations', but using my old
sitemap + old files, it does not come up..
-- 
.Digital.Yearning.for.Networked.Assassination.and.Xenocide

---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <co...@xml.apache.org>
For additional commands, e-mail: <co...@xml.apache.org>