Re: [xml] too many mallocs?

Daniel, All,

I didn't want to be negative, or criticize for
its own sake.

I'm just wondering about the stats I get. And asking,
if you're aware of the situation. 

And I really have no clue, how mallocs on
other platforms perform.

It may be a niche case to see malloc dominate, it's
most pronounced on a document without attributes but
with many tags, most of them empty, it's about 330k

On a rather mediocre WNT system, my xmllint needs 
260ms per iteration (Igor's MSFT version needs 410ms,
at least I can outperform this!). Of these 260ms, over
100ms are spent in malloc and free, and another large
part in related activities (_stos amd xmlStrndup).

Parsing the libxml2 API document (490k) is slower, showing
that attributes are more expensive than elements, using 400ms
(690ms) with about the same absolute time spent in malloc
and friends.

I'll try to understand better, what's going on, and maybe
there is a solution.

Peter Jacobi

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]