Gnus development mailing list
 help / color / mirror / Atom feed
From: Simon Josefsson <jas@extundo.com>
Cc: ding@gnus.org
Subject: Re: Concerning marks and the back end.
Date: Thu, 02 Jan 2003 20:14:30 +0100	[thread overview]
Message-ID: <iluisx74b55.fsf@latte.josefsson.org> (raw)
In-Reply-To: <86fzsc4ii2.fsf@asfast.com> (Lloyd Zusman's message of "Wed, 01 Jan 2003 17:23:17 -0500")

Lloyd Zusman <ljz@asfast.com> writes:

> Since gnus is making use of `.marks' files these days, I'm wondering if
> there's a way to solve the following problem that I'm having:
>
> In some groups, I keep a large history of old messages.  Therefore, it
> can be very slow to enter such a group.  If I want to speed things up,
> one thing that I know I could do would be to create some sort of
> auxiliary group for each of these groups, wherein I can put most of the
> old articles.  This way, under normal, everyday use, I can enter the
> main group relatively quickly, and those more infrequent times when I
> want to look through the old articles, I can go to the auxiliary group.
>
> But I'm wondering if I can avoid these auxiliary groups.  I'm wondering
> if there's a mark or set of marks that I can put on articles, and whose
> existence would be noted in the .marks file for any given group.  And if
> so, would it be possible to set up a group so that under normal group
> entry, any article ranges that are marked with this special mark will
> cause the articles to be ignored with no query being done to the back
> end? ... and only if I enter a group in a non-standard way (i.e., via
> a different command or a special prefix argument) would these special
> marks be ignored and the entire list of articles would be quieried
> from the back end.
>
> This way, I could keep all articles in their original group, with the
> oldest articles marked in this special way.  Entering the group in the
> "normal" manner would be fast, since no back-end query would need to be
> done for any articles for which the .marks file indicates the existence
> of this special mark.  These back-end queries would only be performed
> for the non-marked (in this case, newest) articles.
>
> I hope I explained this clearly.
>
> Is this something that can now be done in some way, or which perhaps
> could be added without a huge amount of complexity?

nnvirtual could solve this.

But the real problem seem to be why it is taking too long.  Maybe that
part can be optimized away, e.g. by not querying for articles Gnus can
figure out will never be shown in the summary buffer anyway.  I added
the following to the Troubleshooting chapter, does it help in
isolating the slow part?  If it is incorrect in any way (written from
memory, not tested, etc) please point that out too.  Thanks.

,----
|    Sometimes, a problem do not directly generate a elisp error but
| manifests itself by causing Gnus to be very slow.  In these cases, you
| can use `M-x toggle-debug-on-quit' and press C-j when things are slow,
| and then try to analyze the backtrace (repeating the procedure helps
| isolating the real problem areas).  A fancier approach is to use the
| elisp profiler, ELP.  The profiler is (or should be) fully documented
| elsewhere, but to get you started there are a few steps that need to be
| followed.  First, instrument the part of Gnus you are interested in for
| profiling, e.g. `M-x elp-instrument-package RET gnus' or `M-x
| elp-instrument-packagre RET message'.  Then perform the operation that
| is slow and press `M-x elp-results'.  You will then see which
| operations that takes time, and can debug them further.  If the entire
| operation takes much longer than the time spent in the slowest function
| in the profiler output, you probably profiled the wrong part of Gnus.
| To reset profiling statistics, use `M-x elp-reset-all'.  `M-x
| elp-restore-all' is supposed to remove profiling, but given the
| complexities and dynamic code generation in Gnus, it might not always
| work perfectly.
`----




  parent reply	other threads:[~2003-01-02 19:14 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-01 22:23 Lloyd Zusman
2003-01-02 16:57 ` Kai Großjohann
2003-01-02 18:23   ` Lloyd Zusman
2003-01-02 18:46     ` Lars Magne Ingebrigtsen
2003-01-03  2:23       ` Lloyd Zusman
2003-01-03  2:45         ` Simon Josefsson
2003-01-03  2:56           ` Lloyd Zusman
2003-01-03  3:01             ` Lloyd Zusman
2003-01-03  4:11               ` Simon Josefsson
2003-01-03  4:59                 ` Lloyd Zusman
2003-01-03 14:57                   ` Simon Josefsson
2003-01-04 18:23                   ` Lloyd Zusman
2003-01-13 18:47                     ` A solution that's better than my ugly hack? Lloyd Zusman
2003-01-13 18:53                       ` Lars Magne Ingebrigtsen
2003-01-13 19:00                         ` Lloyd Zusman
2003-01-13 19:18                           ` Lars Magne Ingebrigtsen
2003-01-13 19:26                             ` Lloyd Zusman
2003-01-13 19:30                               ` Lars Magne Ingebrigtsen
2003-01-13 19:33                                 ` Lloyd Zusman
2003-01-13 21:04                                 ` Lloyd Zusman
2003-01-13 19:32                               ` Lloyd Zusman
2003-01-03 17:54         ` Concerning marks and the back end Kai Großjohann
2003-01-03 18:20           ` Lloyd Zusman
2003-01-03 17:53     ` Kai Großjohann
2003-01-03 18:15       ` Lloyd Zusman
2003-01-03 19:18         ` Kai Großjohann
2003-01-03 19:34           ` Lloyd Zusman
2003-01-03 19:43             ` Lloyd Zusman
2003-01-03 21:03               ` Kai Großjohann
2003-01-03 21:24                 ` Lloyd Zusman
2003-01-04 14:52                   ` Kai Großjohann
2003-01-04 16:19                     ` Lloyd Zusman
2003-01-03 20:17             ` Lars Magne Ingebrigtsen
2003-01-03 20:41               ` Lloyd Zusman
2003-01-03 20:45                 ` Lars Magne Ingebrigtsen
2003-01-03 20:52                   ` Lloyd Zusman
2003-01-03 21:05                     ` Kai Großjohann
2003-01-03 21:05                 ` Kai Großjohann
2003-01-04  4:50                   ` Lloyd Zusman
2003-01-03 20:53             ` Paul Jarc
2003-01-03 20:58               ` Lloyd Zusman
2003-01-03 21:02             ` Kai Großjohann
2003-01-02 19:14 ` Simon Josefsson [this message]
2003-01-03  2:25   ` Lloyd Zusman

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=iluisx74b55.fsf@latte.josefsson.org \
    --to=jas@extundo.com \
    --cc=ding@gnus.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;
as well as URLs for NNTP newsgroup(s).