This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Darwin] PATCH: avoid unnecessary allocation in darwin_make_decl_one_only
- From: Dale Johannesen <dalej at apple dot com>
- To: Matt Austern <austern at apple dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Dale Johannesen <dalej at apple dot com>
- Date: Tue, 31 Aug 2004 10:58:00 -0700
- Subject: Re: [Darwin] PATCH: avoid unnecessary allocation in darwin_make_decl_one_only
- References: <3F810444-FB71-11D8-8514-000A95AA5E5E@apple.com>
On Aug 31, 2004, at 10:14 AM, Matt Austern wrote:
This won't make a huge difference in performance, but at least it
kills one place where we were being gratuitously inefficient. We're
currently allocating a new string every time we make a symbol
one-only, even though there are only two distinct strings. This
patch fixes that. Bootstrapped on powerpc-apple-darwin7.5.0.
OK to commit to mainline?
OK.