Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Confused about registry and pruned entries
@ 2013-08-01  6:24 Teemu Likonen
  2013-08-01  6:50 ` Tassilo Horn
  0 siblings, 1 reply; 2+ messages in thread
From: Teemu Likonen @ 2013-08-01  6:24 UTC (permalink / raw)
  To: info-gnus-english


[-- Attachment #1.1: Type: text/plain, Size: 1468 bytes --]

I'm confused with Gnus registry size. There are (at least) two variables
which control registry's size:

 1. gnus-registry-max-entries
 2. gnus-registry-max-pruned-entries

The variable 1 _seems_ clear. No more than that number of entries will
be in the registry. The variable 2 is unclear and the documentation
makes it worse. In the info manual it says:

 -- Variable: gnus-registry-max-pruned-entries
     The maximum number (an integer or `nil' for unlimited) of entries
     the registry will keep after pruning.

So Gnus does some kind of pruning to reduce the registry size. Pruned
entries are gone but variable 2 tells how many to keep.

Let's look at the variable's own documentation (C-h v
gnus-registry-max-pruned-entries):

    Documentation:
    Maximum number of pruned entries in the registry, nil for unlimited.

What? Now it is telling that, even if Gnus prunes something, it keeps
some of those pruned entries in the registry. Variable 2 is telling how
many.

To add the the confusion I checked the registry file. There in the
registry-db expression is keyword :max-hard and :max-soft. It seems that
the variable 1 controls :max-hard and variable 2 :max-soft. This hard
and soft terminology only confuses me more because I understand them
differently than those previous two documentation strings.

So, how do I actually control Gnus registry's size? Let's say I want it
to have maximum of 5000 entries and never grow significantly larger than
that.

[-- Attachment #1.2: Type: application/pgp-signature, Size: 835 bytes --]

[-- Attachment #2: Type: text/plain, Size: 162 bytes --]

_______________________________________________
info-gnus-english mailing list
info-gnus-english@gnu.org
https://lists.gnu.org/mailman/listinfo/info-gnus-english

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Confused about registry and pruned entries
  2013-08-01  6:24 Confused about registry and pruned entries Teemu Likonen
@ 2013-08-01  6:50 ` Tassilo Horn
  0 siblings, 0 replies; 2+ messages in thread
From: Tassilo Horn @ 2013-08-01  6:50 UTC (permalink / raw)
  To: info-gnus-english

Teemu Likonen <tlikonen@iki.fi> writes:

Hi Teemu,

> I'm confused with Gnus registry size. There are (at least) two
> variables which control registry's size:
>
>  1. gnus-registry-max-entries
>  2. gnus-registry-max-pruned-entries
>
> The variable 1 _seems_ clear. No more than that number of entries will
> be in the registry. The variable 2 is unclear and the documentation
> makes it worse. In the info manual it says:
>
>  -- Variable: gnus-registry-max-pruned-entries
>      The maximum number (an integer or `nil' for unlimited) of entries
>      the registry will keep after pruning.

I've asked the very same question recently on this group (Message-ID:
<87d2u1d0g4.fsf@thinkpad.tsdh.de>), and Ted replied:

      TH> 1) What's `gnus-registry-max-pruned-entries' good for?  Of
      TH> course I've read its docs, but still I have no idea.  What is
      TH> a pruned entry?

  TZ> We prune entries that are disposable, meaning they don't have
  Tz> any keys considered "precious."

Well, honestly that didn't help me either (why keep 'em when they're not
precious?), but since I had a more important question in that posting
that Ted explained me well, I didn't followup on the "pruned entries"
question.

Bye,
Tassilo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-08-01  6:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-01  6:24 Confused about registry and pruned entries Teemu Likonen
2013-08-01  6:50 ` Tassilo Horn

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).