From: Daniel Berlin <dan@dberlin.org>
To: Daniel Jacobowitz <drow@mvista.com>
Cc: <gdb-patches@sources.redhat.com>
Subject: Re: Patch: completion -vs- duplicates
Date: Sat, 05 Jan 2002 10:37:00 -0000 [thread overview]
Message-ID: <Pine.LNX.4.33.0201051336040.7876-100000@dberlin.org> (raw)
In-Reply-To: <20020105133046.A22271@nevyn.them.org>
On Sat, 5 Jan 2002, Daniel Jacobowitz wrote:
> On Sat, Jan 05, 2002 at 10:43:57AM -0500, Daniel Berlin wrote:
> > On Sat, 5 Jan 2002, Eli Zaretskii wrote:
> >
> > > > From: Tom Tromey <tromey@redhat.com>
> > > > Date: 04 Jan 2002 17:07:51 -0700
> > > >
> > > > Right now the `complete' command can print duplicates. readline seems
> > > > to filter these, so you don't see this using Tab in the CLI, but you
> > > > can see it in Insight or by using the complete command.
> > >
> > > Hm... shouldn't Insight do the same as readline?
> > >
> > > In my mind, GDB doesn't do any completion at all. Completion is a
> > > feature of the UI; GDB just helps the UI by providing a function to
> > > call to get all the completion candidates. The rest--how to display
> > > the candidates, whether to filter out duplicates, etc.--is up to the
> > > UI's completion machinery. So conceptually, in my mind, the
> > > filtering doesn't belong in GDB.
> > >
> > > Concepts aside, the change you suggest has also practical
> > > disadvantages: filtering duplicates in GDB's completion function would
> > > mean a performance hit in the CLI version, since readline will try to
> > > filter again.
> >
> > Yes. I remember this was the huge lose that caused completion to take
> > forever, which is why I removed the duplicate filtering.
> > I'm surprised you insight guys didn't notice then, actually.
> > --Dan
>
> Is it possible to turn this off in readline? I'd rather do it once
> than in every frontend! And from what I recall, readline is not
> terribly efficient about it.
Nor were we.
IIRC, we did it as each thing was added to the list (I could be wrong
here), which gives you horrible complexity.
If this is the case, doing it once at the end would be fine by me.
>
>
prev parent reply other threads:[~2002-01-05 18:37 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-01-04 15:55 Tom Tromey
2002-01-05 0:25 ` Eli Zaretskii
2002-01-05 7:44 ` Daniel Berlin
2002-01-05 10:20 ` Tom Tromey
2002-01-05 10:34 ` Andrew Cagney
2002-01-05 12:37 ` Tom Tromey
2002-01-05 10:30 ` Daniel Jacobowitz
2002-01-05 10:37 ` Daniel Berlin [this message]
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=Pine.LNX.4.33.0201051336040.7876-100000@dberlin.org \
--to=dan@dberlin.org \
--cc=drow@mvista.com \
--cc=gdb-patches@sources.redhat.com \
/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