Re: [RFA] Use std::vector for moribund_locations

Simon Marchi
2018-07-04T17:39:12Z

On 2018-07-04 00:55, Tom Tromey wrote:
>>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:
>
> Simon> Just a note that this changes an "unordered remove" to an
> "ordered remove".
> Simon> If we don't need to keep the relative order of the remaining
> elements, it
> Simon> might be good performance-wise to keep the original behavior.
> This could
> Simon> be done by keeping the original code structure (iterating by
> index) and
> Simon> calling undordered_remove.
>
> Somewhere else, Pedro pointed out the unordered_remove template
> function
> in common/gdb_vecs.h.

Yes, this is what I'm referring to.

Simon