public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Alexandre Oliva <aoliva@redhat.com>
To: "Daniel Berlin" <dberlin@dberlin.org>
Cc: "Mike Stump" <mrs@apple.com>,
	"Ian Lance Taylor" <iant@google.com>,
	        "Mark Mitchell" <mark@codesourcery.com>,
	        "Zdenek Dvorak" <rakdver@kam.mff.cuni.cz>,
	gcc-patches@gcc.gnu.org
Subject: Re: [patch] Move loop structures to gc memory
Date: Thu, 17 May 2007 19:57:00 -0000	[thread overview]
Message-ID: <orr6pfrzr7.fsf@free.oliva.athome.lsd.ic.unicamp.br> (raw)
In-Reply-To: <4aca3dc20705171038ye54e4e7s5bd76f082a2a8a2c@mail.gmail.com> (Daniel Berlin's message of "Thu\, 17 May 2007 13\:38\:30 -0400")

On May 17, 2007, "Daniel Berlin" <dberlin@dberlin.org> wrote:

> On 5/17/07, Mike Stump <mrs@apple.com> wrote:
>> On May 16, 2007, at 5:47 PM, Ian Lance Taylor wrote:
>> > Putting something in GC memory unnecessarily is inevitably slower than
>> > not putting it in GC memory, if only because GC requires overhead to
>> > track objects.

>> But, the cost can be as cheap as:

> It's not that cheap right now.
> Unless you are going to make it this cheap, can we please stop
> pretending it's this cheap?

This argument seems backwards.

If our GC memory allocator is slow, this affects *every* call of
ggc_alloc.

Moving objects out of the GC pool because ggc_alloc is slow is a
local, limited fix, that merely papers over the real problem.

It seems quite obvious to me that speeding up ggc_alloc such that it's
on par with other, faster allocators, would achieve not only the
intended benefit of moving objects out of GC (except for alloca(),
which is truly unbeatable), but also speed everything else up.

Surely it is possible to allocate memory faster, since other
allocators do it, and it's not like doing so in a GC-enabling way
requires significant overhead.

Then why paper over the problem that slows all of GCC down?

-- 
Alexandre Oliva         http://www.lsd.ic.unicamp.br/~oliva/
FSF Latin America Board Member         http://www.fsfla.org/
Red Hat Compiler Engineer   aoliva@{redhat.com, gcc.gnu.org}
Free Software Evangelist  oliva@{lsd.ic.unicamp.br, gnu.org}

  reply	other threads:[~2007-05-17 19:57 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-13 18:08 Zdenek Dvorak
2007-05-13 18:20 ` Richard Guenther
2007-05-13 18:33   ` Zdenek Dvorak
2007-05-13 18:49   ` Daniel Berlin
2007-05-14 18:13 ` Ian Lance Taylor
2007-05-14 20:58   ` Zdenek Dvorak
2007-05-14 21:19   ` Mike Stump
2007-05-14 21:28     ` Ian Lance Taylor
2007-05-14 21:41       ` Zdenek Dvorak
2007-05-14 22:35         ` Ian Lance Taylor
2007-05-14 22:32       ` Daniel Jacobowitz
2007-05-14 22:38         ` Ian Lance Taylor
2007-05-14 22:55           ` Zdenek Dvorak
2007-05-14 23:02           ` Daniel Jacobowitz
2007-05-14 23:25             ` Ian Lance Taylor
2007-05-15  2:14               ` Daniel Jacobowitz
2007-05-16  1:23                 ` Mark Mitchell
2007-05-16  4:42                   ` Mike Stump
2007-05-16  6:55                   ` Alexandre Oliva
2007-05-16 15:54                     ` Daniel Berlin
2007-05-17  0:18                       ` Alexandre Oliva
2007-05-17  0:33                         ` Mark Mitchell
2007-05-17  4:11                           ` Alexandre Oliva
2007-05-17  4:18                             ` Mark Mitchell
2007-05-17  5:21                               ` Alexandre Oliva
2007-05-17  0:48                         ` Ian Lance Taylor
2007-05-17  3:30                           ` Alexandre Oliva
2007-05-17  4:30                             ` Daniel Berlin
2007-05-17  5:38                               ` Alexandre Oliva
2007-05-17 14:38                                 ` Ian Lance Taylor
2007-05-17 19:50                                   ` Alexandre Oliva
2007-05-17 16:03                           ` Mike Stump
2007-05-17 17:38                             ` Daniel Berlin
2007-05-17 19:57                               ` Alexandre Oliva [this message]
2007-05-17 20:06                                 ` Zdenek Dvorak
2007-05-18  8:33                                   ` Alexandre Oliva
2007-05-18 15:09                                     ` Daniel Berlin
2007-05-18 16:53                                       ` Alexandre Oliva
2007-05-18 17:37                                         ` Daniel Berlin
2007-05-18 17:46                                         ` Michael Matz
2007-05-18 18:50                                           ` Mike Stump
2007-05-17 20:11                                 ` Daniel Jacobowitz
2007-05-17 14:24                       ` Zdenek Dvorak
2007-05-17 17:46                         ` Daniel Berlin
2007-05-17 17:58                         ` Richard Guenther
2007-05-14 23:57           ` Mike Stump
2007-05-15  4:07             ` Steven Bosscher
2007-05-15  6:15               ` Mike Stump
2007-05-15  7:02                 ` Paolo Bonzini
2007-05-15  8:35                   ` Mike Stump
2007-05-15 15:00                     ` Ian Lance Taylor
2007-05-15 15:20                       ` Michael Matz
2007-05-15 21:49                         ` Ian Lance Taylor
2007-05-16  4:37                           ` Mike Stump
2007-05-16  4:42                             ` Ian Lance Taylor
2007-05-16  4:56                               ` Mike Stump
2007-05-16  4:30                       ` Mike Stump

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=orr6pfrzr7.fsf@free.oliva.athome.lsd.ic.unicamp.br \
    --to=aoliva@redhat.com \
    --cc=dberlin@dberlin.org \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=iant@google.com \
    --cc=mark@codesourcery.com \
    --cc=mrs@apple.com \
    --cc=rakdver@kam.mff.cuni.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).