This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [lambda] Latest experimental polymorphic lambda patches


On 08/11/2009 11:20 AM, Adam Butcher wrote:
Ah okay.  Would it be worth enhancing the tree-vec interface to include block reallocation with size doubling and end
marking to allow for more efficient reallocation?

I don't think so; I expect that would end up being less space-efficient, since in most cases we know in advance exactly how much space we need.


Feel free to add a realloc_tree_vec function to gcc/tree.c, though.

Such a structural change maybe hidden by the macro front-end.  I
wonder how many uses of make_tree_vec don't ggc_free their previous tree-vec when using it in a 'realloc' way.

That just means they'll live until the next GC pass, not a big deal.


Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]