in reply to No av_splice function?

Any way to shrink the AV?

There's av_pop, av_shift and av_fill (which can be used instead of repeatedly calling av_pop).

But, of course, they're a bit limiting if you want to shrink the AV by removing middle elements :-)

Cheers,
Rob

Replies are listed 'Best First'.
Re^2: No av_splice function?
by qumsieh (Scribe) on May 04, 2008 at 17:36 UTC
    Thanks for both replies.
    My inclination is to define some sort of threshold, such that when that many elements of my AV (say 50%) are undefined, then I replace it with a new AV. I'm guessing that this will be faster and more efficient than continually resizing my AV anytime an element needs to be deleted.
    Thanks again.