Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Paul Hilfinger <hilfingr@EECS.Berkeley.EDU>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb@sourceware.org
Subject: Re: GDB to C++ issue: deletion
Date: Thu, 31 Jul 2008 23:34:00 -0000	[thread overview]
Message-ID: <200807312325.m6VNPI7u007784@tully.CS.Berkeley.EDU> (raw)


> > 1. Ahem, which is precisely why I used a new subject, so as not to 
> >    incorporate an incidental side discussion into the same thread!
> 
> Sorry.  You replied to the same thread; most current Unix mailers
> will thread such replies together regardless of subject.  I didn't
> even notice.

How "helpful" of them.  Sorry; I didn't edit my header stringently
enough.  My bad.

> > 2. On the other hand, if someone is going to claim the advantages of 
> >    not having to do delete as an advantage, it is not entirely 
> >    unreasonable to make sure it really works out that way in practice.
> 
> IMO that applies to short lived variables, not the sort of things that
> get obstacked at all.

Actually, I had already concluded that short-lived variables would NOT
be a great problem.  To a first approximation, the effect of using STL's
storage management is to increase allocation costs by some constant
factor, because deallocation cost for an object tends to be limited by
some constant times its allocation cost.  As long as GDB's allocation
costs are not huge (and the constant factors are not huge), we
shouldn't have much pain.  

But that's just an overall argument about total execution time.
Common sources of short-lived variables (say during parsing and
(sub)expression evaluation) don't produce that many variables between
prompts (usually).  What I was more interested in was the possibility
of noticeably large changes in pause times for expensive operations
(such as re-reading a symbol table) on large executables.  I can think
of approaches, certainly, but have no actual experience with how well
they integrate with STL classes in practice.

Paul



             reply	other threads:[~2008-07-31 23:25 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-31 23:34 Paul Hilfinger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-07-31 14:37 Move GDB to C++ ? Alpár Jüttner
2008-07-31 22:30 ` GDB to C++ issue: deletion Paul Hilfinger
2008-07-31 22:40   ` Daniel Jacobowitz
2008-07-31 22:58     ` Paul Hilfinger
2008-07-31 23:25       ` Daniel Jacobowitz
2008-08-01  5:38   ` Ian Lance Taylor
2008-08-01  8:52   ` André Pönitz
2008-08-01  9:53     ` Eli Zaretskii
2008-08-01 12:57       ` Daniel Jacobowitz
2008-08-01 14:57         ` Paul Koning
2008-08-01 15:31           ` Eli Zaretskii
2008-08-01 13:51       ` André Pönitz
     [not found]       ` <20080801125124.GA13594@caradoc.them.org>
     [not found]         ` <uzlnwn9jq.fsf@gnu.org>
2008-08-01 13:59           ` Daniel Jacobowitz
2008-08-01 15:17             ` Eli Zaretskii
2008-08-01 15:29               ` Daniel Jacobowitz
2008-08-01 15:38                 ` Eli Zaretskii

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=200807312325.m6VNPI7u007784@tully.CS.Berkeley.EDU \
    --to=hilfingr@eecs.berkeley.edu \
    --cc=Hilfinger@CS.Berkeley.EDU \
    --cc=drow@false.org \
    --cc=gdb@sourceware.org \
    /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