Gnus development mailing list
 help / color / mirror / Atom feed
From: kai.grossjohann@uni-duisburg.de (Kai Großjohann)
Subject: Re: 'g' in the group buffer still very slow
Date: Sat, 14 Dec 2002 13:52:22 +0100	[thread overview]
Message-ID: <84lm2skbjt.fsf@lucy.cs.uni-dortmund.de> (raw)
In-Reply-To: <87d6o5et2g.fsf@gmx.de>

Martin Rohde <martin.rohde@gmx.de> writes:

> Sorry, I mixed some things up.
> All it saves is the sending of "MyNOOP". It is wrong to speak of
> "saving time". 

Ah, it saves sending that command!  Okay, I completely missed that.
That's a minor point, but it *is* an advantage.

> It just saves the additional code in nntp-open-connection, that's
> why I prefer it. But the other version works as well, so if you're
> prefering your way, I can send you the working patch, too.

No, now I'm convinced that the no-MyNOOP way is better.  So I agree
with you.

> Yes, but i couldn't see a 
>
> (make-local-variable nntp-open-connection-function) 
>
> anywhere. Furthermore, I am not in a special buffer, when I check it
> (or am I?), so that's why I asked.

Whee.  Well, err.  The Gnus backend code is pretty convoluted, and I
believe any number of wonders that can be done with nnoo.

Ah, and nntp-open-connection-function is defvoo'd, not defvar'd.  That
explains it all.  I started to look in defvoo and then in nnoo-define,
but I get lost in a twisty maze of little backquotes...  Anyhow, I'm
almost sure that nnoo has some magic to make the variable local.

Anyone?

> I thought, it would make the start of gnus a bit faster when you are
> using nntp-open-network-stream, because otherwise you would still
> have the delay from nntp-accept-response when nntp-send-command is
> called for the first time.

Hm.  This happens if the first command doesn't produce a response,
right?  Anyhow, it's not so important.  Just leave it like that but a
comment (connections created with nntp-open-network-stream will never
echo; don't bother checking for echoes there) would be nice.

>> Secondly, and this is the logic part, the check-for-echo variable
>> starts out as nil.  I didn't look very closely, but I thought that the
>> echo check is skipped when the variable is nil...
>
> Its global value is nil, but in nntp-make-process-buffer it is
> initialized as
>
> (set (make-local-variable 'nntp-process-delete-echo) t)
>
> The (defvar nntp-process-delete-echo nil) ist just a dummy
> declaration (because of "free variable"-warnings). For it has to be
> checked locally in the server-buffers, it doesn't matter, what its
> global value is, as you explained before. 

What do you think about making it (defvar nntp-process-delete-echo t),
then then, in nntp-make-process-buffer, to just do
(make-local-variable 'nntp-process-delete-echo)?

It might make it a little bit clearer what is the default value of the
variable, so outsiders have a better chance of understanding the code.

Just my two cents.

In general, this is good stuff!
-- 
~/.signature is: umop ap!sdn    (Frank Nobis)



  reply	other threads:[~2002-12-14 12:52 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-07-21 20:16 Sebastian D.B. Krause
2002-07-26 12:45 ` Simon Josefsson
2002-07-26 12:52   ` Kai Großjohann
2002-12-08 18:00   ` Sebastian D.B. Krause
2002-12-08 19:45     ` Kai Großjohann
2002-12-08 20:28       ` Sebastian D.B. Krause
2002-12-08 23:33       ` Martin Rohde
2002-12-09  7:49         ` Kai Großjohann
2002-12-09 14:02           ` Martin Rohde
2002-12-09 17:22             ` Kai Großjohann
2002-12-09 22:38               ` Martin Rohde
2002-12-10 18:30                 ` Martin Rohde
2002-12-11  4:13                   ` kgreiner
2002-12-11 20:05                     ` Martin Rohde
2002-12-11 21:09                       ` kgreiner
2002-12-12 11:37                       ` Kai Großjohann
2002-12-13 15:41                         ` Martin Rohde
2002-12-13 16:24                           ` Kai Großjohann
2002-12-13 17:18                             ` Martin Rohde
2002-12-14 12:52                               ` Kai Großjohann [this message]
2002-12-14 14:11                                 ` Martin Rohde
2002-12-11  8:21                   ` Kai Großjohann
2002-12-09  8:36         ` Kai Großjohann

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=84lm2skbjt.fsf@lucy.cs.uni-dortmund.de \
    --to=kai.grossjohann@uni-duisburg.de \
    /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 NNTP newsgroup(s).