This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[binfo] Inline base binfo vector
- From: Andrew Haley <aph at redhat dot com>
- To: Nathan Sidwell <nathan at codesourcery dot com>
- Cc: Mark Mitchell <mark at codesourcery dot com>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 20 Jul 2004 10:30:24 +0100
- Subject: [binfo] Inline base binfo vector
- References: <40FC0B8B.1050209@codesourcery.com>
Nathan Sidwell writes:
> this patch places a binfo's vector of base binfos as an inline
> trailing array, thus reducing memory fragmentation and indirection.
>
> To do this, I had to hoist the three c++ specific fields to the
> common code, thus making binfos themselves bigger for Java.
> However, overall it is still a win. Two weeks ago I removed on word
> from the binfo (by stopping it be a TREE_VEC), this patch removes
> the VEC overhead of the base binfo vector (4 words), but adds 2
> words for the new vector. Thus saving 3 words overall (which I use
> up with the new c++ fields). The java saving is thus in removing
> indirection, I hope this is satisfactory.
Seems reasonable.
Andrew.