From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/87125 Path: news.gmane.org!not-for-mail From: Jaspn Tibbitts Newsgroups: gmane.emacs.gnus.general Subject: Making IMAP fasterer Date: Sat, 09 Jul 2016 03:27:32 -0500 Message-ID: <87wpkvw70r.fsf@math.uh.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468052952 4838 80.91.229.3 (9 Jul 2016 08:29:12 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 9 Jul 2016 08:29:12 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M35345@lists.math.uh.edu Sat Jul 09 10:29:01 2016 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1bLndC-0002io-FG for ding-account@gmane.org; Sat, 09 Jul 2016 10:28:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.86_2) (envelope-from ) id 1bLnc4-0008Vj-Gy; Sat, 09 Jul 2016 03:27:48 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86_2) (envelope-from ) id 1bLnbz-0008V4-Km for ding@lists.math.uh.edu; Sat, 09 Jul 2016 03:27:43 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86_2) (envelope-from ) id 1bLnby-0003Am-Ic for ding@lists.math.uh.edu; Sat, 09 Jul 2016 03:27:43 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by quimby.gnus.org with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1bLnbx-0005tN-1h for ding@gnus.org; Sat, 09 Jul 2016 10:27:41 +0200 Original-Received: from [89.11.130.100] (helo=tibx1.math.uh.edu) by mx1.math.uh.edu with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.86_2) (envelope-from ) id 1bLnbt-0003Af-PI for ding@gnus.org; Sat, 09 Jul 2016 03:27:39 -0500 Original-Received: by tibx1.math.uh.edu (Postfix, from userid 1000) id 44CFB2C10E0; Sat, 9 Jul 2016 03:27:32 -0500 (CDT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.94 (gnu/linux) X-Spam-Score: -2.9 (--) X-Spam-Score: -4.2 (----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:87125 Archived-At: 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)