Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » Performance problem with XmlParser::Next()
Performance problem with XmlParser::Next() [message #49044] Thu, 07 December 2017 14:18 Go to next message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
Hello,

I'm trying to understand what is line 447 in the method XmlParser::Next() for.
String aval = FromUtf8(~attrval, attrval.GetLength()).ToString();

It is causing major performance problems when parsing big xml files.
What it is doing, it is basically converting StringBuffer --> WString --> String.
I guess it is supposed to retrieve a valid UTF-8 sequence.
Is it possible to replace this conversion with something more performance friendly?

Regards,


Regards,
Novo
Re: Performance problem with XmlParser::Next() [message #49045 is a reply to message #49044] Thu, 07 December 2017 23:57 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
This appears to be a support for non-UTF8 applications.

Will be easy to optimize, good catch.
Re: Performance problem with XmlParser::Next() [message #49049 is a reply to message #49045] Fri, 08 December 2017 19:31 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Should be now fixed.

In the process, I have also added support for <?xml encoding="

Mirek
Re: Performance problem with XmlParser::Next() [message #49050 is a reply to message #49049] Sat, 09 December 2017 04:39 Go to previous message
Novo is currently offline  Novo
Messages: 1358
Registered: December 2006
Ultimate Contributor
Thank you! XML parsing is two times faster now.

Regards,
Novo
Previous Topic: A question about FileSystemInfo
Next Topic: Fixes to Array::Create & Vector::Create
Goto Forum:
  


Current Time: Fri Mar 29 09:43:29 CET 2024

Total time taken to generate the page: 0.01140 seconds