Re: [saxon] Compile time difference between Saxon 8.9 and Saxon 9.0

Thank you for the interesting article, Dr. Kay,
Is this problem occuring in parsing XQuery only, or can it manifest
itself in parsing XSLT, too? Probably parsing the XPath that is
specified in a "select" attribute?
Cheers,
Dimitre Novatchev
On 9/16/08, Michael Kay <mike@...> wrote:
> Thanks for following up on this with a sample query, which I have now
> investigated. It turns out that the cost is nothing to do with optimization
> (which is only taking 2 seconds out of the total of 57 seconds).
>
> I've written up the results of my experiments at
>
> http://saxonica.blogharbor.com/blog/_archives/2008/9/16/3887125.html
>
> This identifies a one-line change which cuts the compile time to 8.5
> seconds, and appears to do no harm as far as I have been able to tell,
> though I'm going to resist issueing it as a patch without further testing.
>
> The poor performance is definitely related to the fact that your
> software-generated query has large function bodies (sometimes over 500
> lines); the time spent in this routine is likely to be quadratic in the
> number of let and for clauses nested within a FLWOR expression.
>
> Michael Kay
> http://www.saxonica.com/
>
>
> > -----Original Message-----
> > From: saxon-help-bounces@...
> > [mailto:saxon-help-bounces@...] On Behalf
> > Of Francis Upton
> > Sent: 10 September 2008 02:57
> > To: Mailing list for the SAXON XSLT and XQuery processor
> > Subject: [saxon] Compile time difference between Saxon 8.9
> > and Saxon 9.0
> >
> > A while back I upgraded to 9.0.0.4 and I noticed a
> > significant difference in the compile time of my XQuery
> > programs (many of them are thousands of lines long, as they
> > are generated). I decided to stay with
> > 8.9 because of this since my application depends on the
> > compile time being relatively fast.
> >
> > I assume the compile time difference is because of
> > optimization that has been added to Saxon 9.
> >
> > Is there a way to turn this optimization off so the compile
> > is faster (and of course the runtime performance would be
> > slower, but this is unimportant for the development phase in
> > my product). When running the XQuery in the production
> > environment the optimization would be turned on.
> >
> > Thanks,
> >
> > Francis
> >
> > --
> > You have brains in your head.
> > You have feet in your shoes.
> > - Dr Seuss, Oh the Places You'll Go
> >
> > Francis Upton IV
> > francis@...
> > Tel 510 835 3123
> > Fax 510 779 5226
> > Cell 510 432 1589
> > Skype francisupton
> >
> > --------------------------------------------------------------
> > -----------
> > This SF.Net email is sponsored by the Moblin Your Move
> > Developer's challenge Build the coolest Linux based
> > applications with Moblin SDK & win great prizes Grand prize
> > is a trip for two to an Open Source event anywhere in the
> > world http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > saxon-help mailing list archived at
> > http://saxon.markmail.org/ saxon-help@...
> > https://lists.sourceforge.net/lists/listinfo/saxon-help
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> saxon-help mailing list archived at http://saxon.markmail.org/
> saxon-help@...
> https://lists.sourceforge.net/lists/listinfo/saxon-help
>
--
Cheers,
Dimitre Novatchev
---------------------------------------
Truly great madness cannot be achieved without significant intelligence.
---------------------------------------
To invent, you need a good imagination and a pile of junk
-------------------------------------
Never fight an inanimate object
-------------------------------------
You've achieved success in your field when you don't know whether what
you're doing is work or play