You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Andreas L Delmelle <a_...@pandora.be> on 2006/07/02 19:50:11 UTC

Re: Performance with large Tables

On Jun 30, 2006, at 15:53, mcevikce wrote:

Hi,

> Thank you for running the file. There is a huge difference between  
> your
> result 6.1 sec and mine 27 sec.
> It would be awsome if I can get this to run on 6.1 sec.
>
> Are you testing this from a command line using fop.bat? Can you  
> tell me
> which libraries are you using? Also any other information about the
> environment you running will help. Here is my environment:

At first glance, the big difference may be this:

> XMLReader parser = factory.newSAXParser().getXMLReader();
> XMLFilter filter = new CSSToXSLFOFilter(null, null, parameters,  
> parser);

I'd expect Jeremias and Pascal not to have placed this filter in  
between.

Is this a custom filter of your own making, or does it belong to one  
of the third-party libraries you're using?


HTH!

Cheers,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Performance with large Tables

Posted by Andreas L Delmelle <a_...@pandora.be>.
On Jul 3, 2006, at 06:43, mcevikce wrote:

Hi,

> This is a 3rd party filter that handles CSS parsing as well.  I also
> confirmed that my XSL-FO to PDF takes 6-7 sec but my xsl-fo  
> generation is
> the problem.

I figured as much, based on the observation you wrote earlier on,  
that "most of the time is spent in the parser"...

> From a standalone test it takes 12-15 sec to create the file
> that I attached link for.
> http://www.4shared.com/file/2278690/5364bc01
>
> 3rd party library can be found at:
> http://www.re.be/css2xslfo/
> I am using the csstofopnew from this site. It is possible that the  
> filter
> might be slowing things down.It is very easy to set this up. Feel  
> free to
> try it.
>
> Are there any other free libraries that convert XHTML with CSS?

Java libraries? Not that I'm aware of, unfortunately.
Depending on the complexity of your XHTML sources, you could try to  
achieve the same effect with an XSL transformation... (AntennaHouse  
has an example HTML2XSLFO stylesheet that is referenced on our  
resources page)
In that case, if the stylesheet is well-designed, you could really  
take advantage of Saxon being the more efficient XSLT processor --in  
your current setup, the XSLT processor just performs an identity  
transformation on the readily transformed output of the filter.

Parsing and applying the CSS templates would be another matter, of  
course :/

Maybe the source of the filter is not fully optimized, and could use  
some streamlining. But then again, given the above, I can imagine  
that combining random XML input with a random CSS template is a  
demanding task, no matter how much the algorithm is optimized. I'd  
have to dive into the CSS2XSLFO source code to be able to say for  
sure...

Quickly browsing through the manual, I read that there are two ways  
of setting up the filter. Maybe you could try the second one (p.54-55  
Example 3): placing the identity transform first in the pipeline, the  
filter would then take the Transformer's output as input and pipe its  
output through to FOP ? (as opposed to right now: your filter sits  
between the XML parser and the XSL Transformer)
Could make a difference...


Cheers,

Andreas


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: Performance with large Tables

Posted by mcevikce <mc...@gmail.com>.
This is a 3rd party filter that handles CSS parsing as well.  I also
confirmed that my XSL-FO to PDF takes 6-7 sec but my xsl-fo generation is
the problem. From a standalone test it takes 12-15 sec to create the file
that I attached link for.
http://www.4shared.com/file/2278690/5364bc01 

3rd party library can be found at:
http://www.re.be/css2xslfo/
I am using the csstofopnew from this site. It is possible that the filter
might be slowing things down.It is very easy to set this up. Feel free to
try it. 

Are there any other free libraries that convert XHTML with CSS? 
-- 
View this message in context: http://www.nabble.com/Performance-with-large-Tables-tf1858493.html#a5146440
Sent from the FOP - Users forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org