From: Tom Tromey <tromey@redhat.com>
To: Daniel Berlin <dan@dberlin.org>
Cc: Eli Zaretskii <eliz@is.elta.co.il>, <gdb-patches@sources.redhat.com>
Subject: Re: Patch: completion -vs- duplicates
Date: Sat, 05 Jan 2002 10:20:00 -0000 [thread overview]
Message-ID: <87k7uw1wdh.fsf@creche.redhat.com> (raw)
In-Reply-To: Daniel Berlin's message of "Sat, 5 Jan 2002 10:43:57 -0500 (EST)"
>>>>> "Daniel" == Daniel Berlin <dan@dberlin.org> writes:
Eli> The rest--how to display the candidates, whether to filter out
Eli> duplicates, etc.--is up to the UI's completion machinery.
It always makes sense to filter duplicates when doing textual
completion. What value can there be in completing to the second of
two identical items?
Eli> Concepts aside, the change you suggest has also practical
Eli> disadvantages: filtering duplicates in GDB's completion function
Eli> would mean a performance hit in the CLI version, since readline
Eli> will try to filter again.
Daniel> Yes. I remember this was the huge lose that caused completion
Daniel> to take forever, which is why I removed the duplicate
Daniel> filtering.
I'm surprised it is that important.
I'll write an Insight patch instead.
Daniel> I'm surprised you insight guys didn't notice then, actually.
I probably did. The bug has been around for a long time. I submitted
an Insight PR way back, which yesterday Keith replied to with a note
saying that it was a gdb bug.
I still think having the `complete' command print duplicates is not
optimal. Suppose you're writing a GUI that wraps gdb. In this case
you're sending 100x more data over the connection than is necessary.
Pruning duplicates in the `complete' command is probably appropriate.
Tom
next prev parent reply other threads:[~2002-01-05 18:20 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 [this message]
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
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=87k7uw1wdh.fsf@creche.redhat.com \
--to=tromey@redhat.com \
--cc=dan@dberlin.org \
--cc=eliz@is.elta.co.il \
--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