edikk Posted April 30, 2007 Share Posted April 30, 2007 I have wrote XML data source based on VTD-XML 2.0 (http://vtd-xml.sourceforge.net/). It is fastest for XPath'es. Example for my reports:For exporting report using default jasperreports datasource it takes more then 20 minutes to export to PDF.When I use xml datasource based on Jaxen, it takes 3 minutes.And now, when I use VTD-XML it takes some less then 1 minute. Mayby not everything can be done with VTD-XML, but for simple XPathes its enough. In attached code there is some caching mechanizm. When XPath begin with "/" so I use it like a constant value for this XML file. I introduce this, because JR rerequest fields values from every report section (not only for detail section, but for header and footer too) every time, when it moved to the next record (next() function). For big XML documents it very carry weight! Source in attachement, good luck :evil: Regards Edik [file name=WinVTDXMLDataSource.zip size=2039]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/WinVTDXMLDataSource.zip[/file]Post edited by: edikk, at: 2007/04/30 14:05 Link to comment Share on other sites More sharing options...
Teodor Danciu Posted May 2, 2007 Share Posted May 2, 2007 Hi, It would be great if you could post this as a patch here:http://jasperforge.org/sf/tracker/do/listArtifacts/projects.jasperreports/tracker.patchbecause otherwise it would get sunk into this forum. Thank you,Teodor Link to comment Share on other sites More sharing options...
edikk Posted May 3, 2007 Author Share Posted May 3, 2007 Ok, done.Is here: http://jasperforge.org/sf/go/artf2243?nav=1 Edik Link to comment Share on other sites More sharing options...
gsaisn Posted July 27, 2013 Share Posted July 27, 2013 @teodord the links are not available anymore. Can you help in locating the files mentioned in the discussion? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now