Hi Niklas,
Niklas Nebel wrote:
Taking an attribute name as an example, with the SAX interface
inbetween, the "via callbacks" part looks (roughly) like this:
The name is copied into a vector for the XAttributeList implementation,
copied again for two getNameByIndex calls (one to look for namespace
attributes, one in the implementation of the cell element context), then
a hash_map is used to separate it into a namespace ID and local name.
That is correct. Some of the copy operations may easily be omitted, but
with nearly no measurable impact.
Considering this, the calculation might me a bit simplistic.
The calculation just gives, what the optimum (minimum) looks like. If
the implementation does more string instantiations than calculated, than
it is obviously not optimal (in this aspect) and the impact of string
con- / destruction is increased.
Niklas
Kay
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]