Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

SchemaAwareTransformerFactory newTransformer performance  RSS feed

 
Paulo Carvalho
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello

I wrote a little application that takes a XML and a XSL and generates another file (PDF or RTF).
The XSL for generating a PDF is not the same that the XSL used for generating a RTF.
The size of bith files is different (PDF has 7000 lines and 393Kb. RTF xsl file has 10000 lines and 818Kb).

Here is the code of my program:


When I execute the program for generating a PDF file, the execution for the (***) line is more or less of 750 miliseconds.
When I execute the program for generating a RTF file, the execution for the (***) line is more or less of 7 seconds. (10x more than for PDF)


Is there any reason for this to happen? Is there any way to avoid/correct the problem?

Note that besides this problem of performance, everything is oK. The files are generated correctly.

Thanks

Regards
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!