This is the mail archive of the gcc-patches@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: PATCH RFA: Use vectors in the C++ frontend


Thanks for doing this.

How much benefit do we get from explicitly freeing gc vectors?

Why assume that a parenthesized expression list will have 16 elements? I would expect most to be shorter than that. Does this give better performance than just starting with a NULL vec or with 4 elements (i.e. the default allocation when growing from 0)?

It seems like we could use a "return a new vec containing this one tree" function.

Also a function to build a call from a vec, rather than have to use _array and explicitly pull out the length and elements each time.

The first_arg business is to avoid allocating a vec when we're only dealing with one argument? It seems to complicate the logic significantly.

Jason


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