CPPSERV


Home Projects Jobs Clientele Contact

cppserv


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

Re: CPPSERV/CXXSP API getAttributeNames()



Ilya A. Volynets-Evenbakh wrote:
> Chris,
> 
> There is {get|set}Attribute and getAttributeNames() function to complement
> them in a few places. Currently we have it declared as returning auto_ptr to
> std::vector. I suggest replacing vector with std::list - it's more
> efficient to create and
> maintain, and most uses will be single forward-iteration anyways.
> 
> Thoughts?
> 

A far as I know vector is more efficient for small collections. lists
are bigger (every element = sizeof(data) + 2*sizeof(pointer) vs. just
sizeof(data) in vector) and are only usefull when adding elements in the
middle of huge collections.

Authoright © Total Knowledge: 2001-2008