This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH RFA: Use vectors in the C++ frontend
- From: Jason Merrill <jason at redhat dot com>
- To: Ian Lance Taylor <iant at google dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 27 Apr 2009 18:06:01 -0400
- Subject: Re: PATCH RFA: Use vectors in the C++ frontend
- References: <m3zle3rics.fsf@google.com>
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