From: Andrej v. d. Z. <and...@gm...> - 2011-06-03 04:48:07
|
Hi, Maybe it is a known issue, but I noticed that DomParser::parse_stream() is extremely slow for big XML documents, as compared to DomParser::parse_memory(). For a 20MB document the former takes more than 5 min on my computer, while the latter only 6 seconds. So using: stringstream post_stream; parser.parse_memory(post_stream.str()); Instead of: stringstream post_stream; parser.parse_stream(post_stream); Make a big difference. Unfortunately I have no time to get into the sources, just wanted to let you know. Best regards, Andrej |