Gnus development mailing list
 help / color / mirror / Atom feed
* Making IMAP fasterer
@ 2016-07-09  8:27 Jaspn Tibbitts
  2016-07-09  9:03 ` Steinar Bang
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Jaspn Tibbitts @ 2016-07-09  8:27 UTC (permalink / raw)
  To: ding

I'm on vacation and instead of my usual method of ssh-ing into my work
machine and running emacs in a screen session, I thought I'd try setting
up gnus locally.  And it works, but it's pretty slow.  I'm running
Fedora 24, with emacs 25.0.94 the version of gnus which comes with it
(5.13).

I think that the issue is that the path to my IMAP server has a bit of
latency, which isn't surprising considering I'm on a Norwegian island
not far from the arctic circle.  I have always had gnus-asynchronous
set, and I remember in the past it used to flash messages about the
articles it was prefetching.  I haven't seen that in a while, and it
doesn't look like gnus is doing any article prefetching.  So selecting
an article takes a couple of seconds while it does a bunch of round
trips.

In addition, gnus-group-get-new-news always tells me "nnimap read NNNk
from imap.math.uh.edu (initial sync of 4 groups; please wait)" while it
fetches about 400k in total.  This takes about ten seconds every time i
hit 'g', which I'm trying to condition myself not to do.

So, does anyone have any tips for making it run a bit smoother?  My
.gnus file is below.  (Sadly, all of the bbdb stuff there is pointless
because I can't make that work either.  But that's a topic for another
email.)

 - J<

;; GNUS definitions and setup  -*- emacs-lisp -*-
(require 'bbdb)
(bbdb-initialize 'gnus 'message)
(require 'gnus-icalendar)
(gnus-icalendar-setup)

;;; GNUS Envornment variables
(setq
 mm-text-html-renderer              'shr
 mm-discouraged-alternatives        '("text/html" "text/richtext")
;mm-inline-override-types           (setq mm-discouraged-alternatives
;					  '("text/html"
;					    "text/richtext"))
 message-signature                  t
 message-sendmail-f-is-evil         t
 rmail-dont-reply-to-names          "tibbs"
 gnus-ignored-from-address          "tibbs"
 gnus-treat-date-lapsed             'head
 gnus-treat-highlight-headers       'head
 gnus-treat-highlight-citation      't
 gnus-treat-highlight-signature     't
 gnus-treat-fill-long-lines         nil
 gnus-read-active-file              'some
 gnus-check-new-newsgroups          'ask-server
 gnus-asynchronous                  t
 gnus-keep-backlog                  50
 gnus-uncacheable-groups            "^nnml"
 gnus-use-demon                     t
 gnus-use-article-prefetch          200
 gnus-prefetched-article-deletion-strategy '(exit)
 gnus-summary-check-current         t
 gnus-uu-do-not-unpack-archives     t
 gnus-score-exact-adapt-limit       8
 gnus-summary-zcore-fuzz            15
 gnus-verbose                       100
 gnus-use-cache                     t
 gnus-cache-directory               "~/News/cache"
 gnus-decay-scores                  t
 gnus-default-adaptive-score-alist  '((gnus-kill-file-mark)
				     (gnus-unread-mark)
				     (gnus-read-mark
				      (from  3) (subject  30))
				     (gnus-catchup-mark
				      (subject -10))
				     (gnus-killed-mark
				      (from -1) (subject -20))
				     (gnus-expirable-mark
				      (from -2) (subject -15))
				     (gnus-del-mark
				      (from -2) (subject -15))
				     )
 gnus-adaptive-word-no-group-words t
 gnus-article-save-directory       "~/News"
 gnus-auto-center-summary          t
 gnus-auto-mail-to-author          t
 gnus-auto-select-first            nil
 gnus-auto-select-same             nil
 gnus-break-pages                  t
 gnus-default-distribution         "world"
 gnus-fetch-old-headers            nil
 gnus-file-save-name               'gnus-plain-save-name
 gnus-followup-to                  t
 gnus-ignored-headers              (concat
				    "^Path:\\|^Posting-Version:\\|^Article-I.D.:"
				    "\\|^Expires:\\|^Date-Received:\\|^Control:"
				    "\\|^Xref:\\|^Posted:\\|^Relay-Version:"
				    "\\|^Message-ID:\\|^Nf-ID:\\|^Nf-From:"
				    "\\|^Sender:\\|^Nntp-Posting-Host:"
				    "\\|Nntp-Posting-User:\\|^Originator:"
				    )
 gnus-interactive-post             t
 gnus-kill-file-name               "KILL"
 gnus-score-file-name              "SCORE"
 gnus-large-newsgroup              200
 gnus-local-domain                 "math.uh.edu"
 gnus-local-timezone               "CST"
 gnus-message-archive-method       `(nnfolder "archive"
					      (nnfolder-directory "~/Mail/Outgoing/")
					      (nnfolder-active-file "~/Mail/Outgoing/active")
					      (nnfolder-inhibit-expiry t)
					      (nnfolder-get-new-mail nil))
 gnus-message-archive-group        '((format-time-string
				      (if (message-news-p) "%Y/news-%m-%B" "%Y/mail-%m-%B")
				      (current-time)))
 gnus-novice-user                  t
 gnus-score-expiry-days            28
 gnus-secondary-select-methods     '((nnml "")); (nnslashdot ""))
 gnus-select-method                '(nnimap "imap.math.uh.edu")
;         (nnimap-stream gssapi)
;         (nnimap-authenticator gssapi))
 nnimap-fetch-partial-articles     t

 gnus-show-all-headers             nil
 gnus-summary-default-interest     0
 gnus-summary-gather-subject-limit 'fuzzy
 gnus-article-mode-line-format     "Gnus: %g/%A %S"
 gnus-summary-make-false-root      'adopt
 gnus-summary-mode-line-format     "Gnus: %g %Z"
 gnus-thread-hide-killed           t
 gnus-thread-hide-subtree          t
 gnus-thread-ignore-subject        t
 gnus-thread-indent-level          4
 gnus-thread-score-function        'max
 gnus-thread-sort-functions    	   '(gnus-thread-sort-by-total-score)
 gnus-use-adaptive-scoring         '(line)
 gnus-use-cross-reference          'neither
 gnus-use-full-window              t
 gnus-use-header-prefetch          t
 gnus-use-long-file-name           t
 gnus-build-sparse-threads         nil
 gnus-tree-line-format             "%[%]"
 gnus-use-trees                    t
 gnus-tree-minimize-window         nil
 nnmail-split-methods              nil
 bbdb-send-mail-style              'gnus
 bbdb-complete-mail-full-completion t
 bbdb-completion-list              'primary-or-name
 bbdb-complete-mail-allow-cycling  t
 bbdb-offer-save                   1
 bbdb-use-pop-up                   t
 bbdb-electric                     t
 bbdb-popup-target-lines           1

 mail-sources                      '((directory :path "/home/tibbs/Mail/spool/"
					       :suffix ".spool")
				     )

 mail-source-directory             (expand-file-name "~/Mail/tmp")
 nnmail-procmail-directory         (expand-file-name "~/Mail/spool")
 nnml-get-new-mail                 t
 nntp-buggy-select                 nil
)

(gnus-add-configuration
 '(article
   '(vertical 1.0
	      (horizontal 0.25
			  (summary 1.0 point)
			  (tree 0.25))
	      (article 1.0)
	      )))

(add-hook 'news-inews-hook 'ispell-message)
(add-hook 'message-mode-hook 'flyspell-mode)
;(remove-hook 'gnus-summary-prepare-exit-hook 'gnus-summary-expire-articles)

;(gnus-demon-add-handler 'gnus-demon-scan-mail 15 5)
;(gnus-demon-add-handler 'gnus-group-expire-all-groups nil 60)
(gnus-start-date-timer 60)



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

end of thread, other threads:[~2017-06-15  6:57 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-09  8:27 Making IMAP fasterer Jaspn Tibbitts
2016-07-09  9:03 ` Steinar Bang
2016-07-09  9:10 ` Steinar Bang
2016-07-09 10:58   ` Jaspn Tibbitts
2016-07-09  9:32 ` Eric Abrahamsen
2016-07-09 10:52   ` Jaspn Tibbitts
2016-07-09 12:14     ` Eric Abrahamsen
2016-07-09 13:07     ` Steinar Bang
2016-07-21  6:28 ` Steinar Bang
2016-07-21 21:02   ` Jason Tibbitts
2016-07-21 21:06     ` Steinar Bang
2017-06-15  6:57 ` Dave Abrahams

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