[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Re: CPPSERV/CXXSP API getAttributeNames()
This may or may not be true for our specific case, but
I'll buy it - in either case, considering average number of
elements in each set, and frequency of invocation, I think
difference will be minimal.
Krzysztof Rzymkowski wrote:
> 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.
>
--
Ilya A. Volynets-Evenbakh
Total Knowledge. CTO
http://www.total-knowledge.com