Re: [xml] Useless function calls in xmlSetProp()?



Hi,

Julien Charbon wrote:
- With old xmlSetProp():

$ ./test-setprop-big
Size:   8       Time:   000:000014397
Size:   16      Time:   000:000003429
Size:   32      Time:   000:000003164
[...]
- With "new" [now current] xmlSetProp():

$ ./test-setprop-big
Size:   8       Time:   000:000004981
Size:   16      Time:   000:000001847
Size:   32      Time:   000:000000906
[...]
 [Yes, attributes with value size of 1 MB are unrealistic, it is just to
show how xmlSetProp() scaled before setprop.patch]

There is a huge difference for small strings, though. Any idea why the (most
common) really short string values take three times as long as the somewhat
longer ones? Or is it just the usual benchmark uncertainty?

What is the time scale you used above anyway?

Stefan



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