Compiling a Stylesheet

View: New views
5 Messages — Rating Filter:   Alert me  

Compiling a Stylesheet

by robertsmme :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Michael,
  what actually happens when you compile a stylesheet?
 
  does it become an executable piece of code i.e. java Class(es)?
 
Martin

-------------------------------------------------------------------------
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 

Re: Compiling a Stylesheet

by Michael Kay :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Saxon-SA now has the ability to generate Java source code from XQuery - this is then executed directly by the JVM (though of course it needs Saxon as a runtime library.
 
But the (older) facility for "compiling" stylesheets is rather different. It basically takes the optimized syntax tree produced by the Saxon compile-time code and serializes it as a data structure on disk, so that it can be reloaded and executed at any time. Frankly, there are no significant performance advantages in doing this compared with recompiling the source.
 
Michael Kay
http://www.saxonica.com/


From: saxon-help-bounces@... [mailto:saxon-help-bounces@...] On Behalf Of martin.me.roberts@...
Sent: 22 July 2008 15:22
To: saxon-help@...
Subject: [saxon] Compiling a Stylesheet

Michael,
  what actually happens when you compile a stylesheet?
 
  does it become an executable piece of code i.e. java Class(es)?
 
Martin

-------------------------------------------------------------------------
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 

Re: Compiling a Stylesheet

by robertsmme :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

 


From: saxon-help-bounces@... [mailto:saxon-help-bounces@...] On Behalf Of Michael Kay
Sent: 22 July 2008 16:20
To: 'Mailing list for the SAXON XSLT and XQuery processor'
Subject: Re: [saxon] Compiling a Stylesheet

Saxon-SA now has the ability to generate Java source code from XQuery - this is then executed directly by the JVM (though of course it needs Saxon as a runtime library.
 
But the (older) facility for "compiling" stylesheets is rather different. It basically takes the optimized syntax tree produced by the Saxon compile-time code and serializes it as a data structure on disk, so that it can be reloaded and executed at any time. Frankly, there are no significant performance advantages in doing this compared with recompiling the source.
 
Michael Kay
http://www.saxonica.com/


From: saxon-help-bounces@... [mailto:saxon-help-bounces@...] On Behalf Of martin.me.roberts@...
Sent: 22 July 2008 15:22
To: saxon-help@...
Subject: [saxon] Compiling a Stylesheet

Michael,
  what actually happens when you compile a stylesheet?
 
  does it become an executable piece of code i.e. java Class(es)?
 
Martin

-------------------------------------------------------------------------
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 

Re: Compiling a Stylesheet

by robertsmme :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Michael,
  Does the java XQuery run much quicker?
 
Martin


From: saxon-help-bounces@... [mailto:saxon-help-bounces@...] On Behalf Of Michael Kay
Sent: 22 July 2008 16:20
To: 'Mailing list for the SAXON XSLT and XQuery processor'
Subject: Re: [saxon] Compiling a Stylesheet

Saxon-SA now has the ability to generate Java source code from XQuery - this is then executed directly by the JVM (though of course it needs Saxon as a runtime library.
 
But the (older) facility for "compiling" stylesheets is rather different. It basically takes the optimized syntax tree produced by the Saxon compile-time code and serializes it as a data structure on disk, so that it can be reloaded and executed at any time. Frankly, there are no significant performance advantages in doing this compared with recompiling the source.
 
Michael Kay
http://www.saxonica.com/


From: saxon-help-bounces@... [mailto:saxon-help-bounces@...] On Behalf Of martin.me.roberts@...
Sent: 22 July 2008 15:22
To: saxon-help@...
Subject: [saxon] Compiling a Stylesheet

Michael,
  what actually happens when you compile a stylesheet?
 
  does it become an executable piece of code i.e. java Class(es)?
 
Martin

-------------------------------------------------------------------------
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 

Re: Compiling a Stylesheet

by Michael Kay :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

The Java XQuery code is typically 25%-50% faster than running interpreted, but it can be anything from 0% to 80% depending on the query. The biggest benefits seem to come when doing a lot of arithmetic.
 
Michael Kay


From: saxon-help-bounces@... [mailto:saxon-help-bounces@...] On Behalf Of martin.me.roberts@...
Sent: 22 July 2008 16:25
To: saxon-help@...
Subject: Re: [saxon] Compiling a Stylesheet

Michael,
  Does the java XQuery run much quicker?
 
Martin


From: saxon-help-bounces@... [mailto:saxon-help-bounces@...] On Behalf Of Michael Kay
Sent: 22 July 2008 16:20
To: 'Mailing list for the SAXON XSLT and XQuery processor'
Subject: Re: [saxon] Compiling a Stylesheet

Saxon-SA now has the ability to generate Java source code from XQuery - this is then executed directly by the JVM (though of course it needs Saxon as a runtime library.
 
But the (older) facility for "compiling" stylesheets is rather different. It basically takes the optimized syntax tree produced by the Saxon compile-time code and serializes it as a data structure on disk, so that it can be reloaded and executed at any time. Frankly, there are no significant performance advantages in doing this compared with recompiling the source.
 
Michael Kay
http://www.saxonica.com/


From: saxon-help-bounces@... [mailto:saxon-help-bounces@...] On Behalf Of martin.me.roberts@...
Sent: 22 July 2008 15:22
To: saxon-help@...
Subject: [saxon] Compiling a Stylesheet

Michael,
  what actually happens when you compile a stylesheet?
 
  does it become an executable piece of code i.e. java Class(es)?
 
Martin

-------------------------------------------------------------------------
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 
LightInTheBox - Buy quality products at wholesale price