RE: Performance degraded with grouping and sorting.
It's always worth trying it on a different processor. Sometimes there can be considerable differences, and sometimes a particular construct will perform badly on one processor and well on another. Sometimes Saxon runs ten times faster than Xalan - but by no means always. Also try running your stylesheet with different volumes of data and seeing how the performance scales. You need to look out for anything that's causing quadratic performance (double the size, four times the time) - often caused by constructs such as //x within a loop, or preceding::x. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: Bhupendra Singh [mailto:skbhupendra@xxxxxxxxxxx] > Sent: 28 October 2004 15:08 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx; kjones@xxxxxxxxxxx > Subject: Re: Performance degraded with grouping and sorting. > > Kev, > Thanks for your reply..If you dont mind can you or > somebody please point to something, where I should be > looking around to increase the performance. > Do you have any ideas how to change the XSLT processor > properties or move to a better performing processor. I > am using Xalan processor currently and you are right I > have a good configuration PC with 1 GB RAM. > > regards, > Bhupi. > > --- Kevin Jones <kjones@xxxxxxxxxxx> wrote: > > On Wednesday 27 October 2004 16:04, Bhupendra Singh > > wrote: > > > Hi, > > > I have an XML something like this. > > > > Cut... > > > > > > > > After the grouping the total time taken was 45 > > secs. > > > which I think is too much. > > > > I would tend to agree. Running a transform based on > > your > > sample the time only doubled between a simple sort > > and your > > code. I could not see any reason you should be > > seeing five > > times worse. > > > > My guess would be it is a "feature" of the XSLT > > processor > > you are using or there is something else in your > > stylesheet > > that is causing the problem. The 5 secs for a simple > > sort > > is also fairly poor (assuming you are running on a > > recent-ish PC) so that may also indicate a processor > > issue. > > > > Kev. > > > > > > Send instant messages to your online friends > http://uk.messenger.yahoo.com
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format