unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Brand <michael.ch.brand@gmail.com>
To: Paul Eggert <eggert@cs.ucla.edu>
Cc: emacs-devel@gnu.org
Subject: Re: OS X (configure --with-ns) typing unresponsive with Org and Viper
Date: Sun, 15 May 2016 22:21:44 +0200	[thread overview]
Message-ID: <CALn3zoiJRCHrAQfbyUNXTYHC+FFeWcTKGR7QSGNBnZFZSDQWhw@mail.gmail.com> (raw)
In-Reply-To: <aa8dbb5a-bf14-cae4-ffc2-08f8a1286a60@cs.ucla.edu>

[-- Attachment #1: Type: text/plain, Size: 641 bytes --]

Hi Paul

On Fri, May 13, 2016 at 9:19 PM, Paul Eggert <eggert@cs.ucla.edu> wrote:

> For profiling, please see the Profiling chapter of the Elisp manual, e.g.,
> the profiler-start function. You need a reasonably bleeding-edge version of
> Emacs for this.

Attached are two profiles, one when in Viper insert mode typing
qwerqwerqwerqwer fast in Text mode where the feedback is responsive
and one in Org mode where the feedback is unresponsive but without the
desktop CPU meter jumping up during the few seconds lagging behind.

What should I be able to understand from these reports and what is
recommended to investigate further?

Michael

[-- Attachment #2: profiler_2016-05-15_when_in_Org_mode.txt --]
[-- Type: text/plain, Size: 6283 bytes --]


[profiler-profile "24.3" cpu #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8 data ([sit-for execute-extended-command funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil nil] 12 [redisplay sit-for execute-extended-command funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil] 7 [image-search-load-path find-image eval "#<compiled 0x400f38d7>" mapcar tool-bar-make-keymap-1 tool-bar-make-keymap redisplay_internal\ \(C\ function\) redisplay sit-for execute-extended-command funcall-interactively call-interactively command-execute nil nil] 1 [execute-extended-command funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil nil nil] 9 [nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil] 2164 [viper-change-cursor-color viper-insert-state-post-command-sentinel run-hooks viper-post-command-sentinel nil nil nil nil nil nil nil nil nil nil nil nil] 44 [viper-change-cursor-color viper-restore-cursor-color viper-insert-state-pre-command-sentinel run-hooks viper-pre-command-sentinel nil nil nil nil nil nil nil nil nil nil nil] 47 [viper-insert-state-post-command-sentinel run-hooks viper-post-command-sentinel nil nil nil nil nil nil nil nil nil nil nil nil nil] 1 [org-self-insert-command funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil nil nil] 1 [viper-get-saved-cursor-color-in-insert-mode viper-restore-cursor-color viper-insert-state-pre-command-sentinel run-hooks viper-pre-command-sentinel nil nil nil nil nil nil nil nil nil nil nil] 1 [viper-change-cursor-color viper-change-state viper-change-state-to-vi viper-exit-insert-state funcall-interactively call-interactively viper-intercept-ESC-key funcall-interactively call-interactively command-execute nil nil nil nil nil nil] 2 [viper-change-cursor-color viper-restore-cursor-color viper-post-command-sentinel nil nil nil nil nil nil nil nil nil nil nil nil nil] 2 [viper-read-key-sequence byte-code call-interactively command-execute nil nil nil nil nil nil nil nil nil nil nil nil] 6 [read-key-sequence viper-read-key-sequence byte-code call-interactively command-execute nil nil nil nil nil nil nil nil nil nil nil] 1 [princ "#<compiled 0x400c4dcd>" apply describe-key-briefly funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil] 1 [if eval redisplay_internal\ \(C\ function\) nil nil nil nil nil nil nil nil nil nil nil nil nil] 2 [file-remote-p redisplay_internal\ \(C\ function\) nil nil nil nil nil nil nil nil nil nil nil nil nil nil] 3 [redisplay_internal\ \(C\ function\) nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil] 1 [mode-line-eol-desc eval redisplay_internal\ \(C\ function\) nil nil nil nil nil nil nil nil nil nil nil nil nil] 1 [viper-get-saved-cursor-color-in-insert-mode viper-change-state-to-insert viper-minibuffer-setup-sentinel read-from-minibuffer completing-read-default completing-read read-extended-command byte-code call-interactively command-execute nil nil nil nil nil nil] 1 [viper-change-cursor-color viper-change-state-to-insert viper-minibuffer-setup-sentinel read-from-minibuffer completing-read-default completing-read read-extended-command byte-code call-interactively command-execute nil nil nil nil nil nil] 2 [viper-get-saved-cursor-color-in-insert-mode viper-insert-state-post-command-sentinel run-hooks viper-post-command-sentinel read-from-minibuffer completing-read-default completing-read read-extended-command byte-code call-interactively command-execute nil nil nil nil nil] 1 [read-from-minibuffer completing-read-default completing-read read-extended-command byte-code call-interactively command-execute nil nil nil nil nil nil nil nil nil] 14 [completing-read-default completing-read read-extended-command byte-code call-interactively command-execute nil nil nil nil nil nil nil nil nil nil] 47 [previous-line-or-history-element funcall-interactively call-interactively command-execute read-from-minibuffer completing-read-default completing-read read-extended-command byte-code call-interactively command-execute nil nil nil nil nil] 1 [viper-change-cursor-color viper-restore-cursor-color viper-insert-state-pre-command-sentinel run-hooks viper-pre-command-sentinel read-from-minibuffer completing-read-default completing-read read-extended-command byte-code call-interactively command-execute nil nil nil nil] 4 [viper-change-cursor-color viper-change-state-to-insert viper-insert funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil] 1 [ask-user-about-lock "#<subr self-insert-command>" apply "#<compiled 0x4040f74b>" apply self-insert-command org-self-insert-command funcall-interactively call-interactively command-execute nil nil nil nil nil nil] 3 [read-char ask-user-about-lock "#<subr self-insert-command>" apply "#<compiled 0x4040f74b>" apply self-insert-command org-self-insert-command funcall-interactively call-interactively command-execute nil nil nil nil nil] 1 [sit-for ask-user-about-lock "#<subr self-insert-command>" apply "#<compiled 0x4040f74b>" apply self-insert-command org-self-insert-command funcall-interactively call-interactively command-execute nil nil nil nil nil] 2 [read-event sit-for ask-user-about-lock "#<subr self-insert-command>" apply "#<compiled 0x4040f74b>" apply self-insert-command org-self-insert-command funcall-interactively call-interactively command-execute nil nil nil nil] 1 [apply "#<compiled 0x4040f74b>" apply self-insert-command org-self-insert-command funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil] 1 [org-activate-plain-links font-lock-fontify-keywords-region font-lock-default-fontify-region font-lock-fontify-region "#<compiled 0x426a7fad>" run-hook-wrapped jit-lock--run-functions jit-lock-fontify-now jit-lock-function redisplay_internal\ \(C\ function\) nil nil nil nil nil nil] 1 [profiler-cpu-profile profiler-report-cpu profiler-report funcall-interactively call-interactively command-execute execute-extended-command funcall-interactively call-interactively command-execute nil nil nil nil nil nil] 1 [Automatic\ GC] 19)) (22328 54408 642384 0) nil]

[-- Attachment #3: profiler_2016-05-15_when_in_Text_mode.txt --]
[-- Type: text/plain, Size: 8115 bytes --]


[profiler-profile "24.3" cpu #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8 data ([sit-for execute-extended-command funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil nil] 14 [redisplay sit-for execute-extended-command funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil] 9 [image-search-load-path find-image eval "#<compiled 0x400f38d7>" mapcar tool-bar-make-keymap-1 tool-bar-make-keymap redisplay_internal\ \(C\ function\) redisplay sit-for execute-extended-command funcall-interactively call-interactively command-execute nil nil] 1 [execute-extended-command funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil nil nil] 7 [nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil] 1395 [viper-change-cursor-color viper-insert-state-post-command-sentinel run-hooks viper-post-command-sentinel nil nil nil nil nil nil nil nil nil nil nil nil] 2 [viper-change-cursor-color viper-restore-cursor-color viper-insert-state-pre-command-sentinel run-hooks viper-pre-command-sentinel nil nil nil nil nil nil nil nil nil nil nil] 3 [viper-change-cursor-color viper-change-state viper-change-state-to-vi viper-exit-insert-state funcall-interactively call-interactively viper-intercept-ESC-key funcall-interactively call-interactively command-execute nil nil nil nil nil nil] 1 [viper-change-cursor-color viper-restore-cursor-color viper-post-command-sentinel nil nil nil nil nil nil nil nil nil nil nil nil nil] 1 [viper-undo funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil nil nil] 1 [primitive-undo undo-more viper-undo funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil] 1 [sit-for viper-undo funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil nil] 1 [redisplay sit-for viper-undo funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil] 1 [primitive-undo undo-more undo funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil] 1 [display-buffer-pop-up-window display-buffer--maybe-pop-up-frame-or-window display-buffer list-buffers funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil] 1 [viper-change-cursor-color viper-restore-cursor-color viper-hide-replace-overlay viper-change-state-to-emacs "#<compiled 0x404b7eb7>" mapc set-viper-state-in-major-mode run-hooks viper-post-command-sentinel nil nil nil nil nil nil nil] 1 [line-move-visual line-move next-line funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil] 1 [file-remote-p redisplay_internal\ \(C\ function\) nil nil nil nil nil nil nil nil nil nil nil nil nil nil] 5 [if eval redisplay_internal\ \(C\ function\) nil nil nil nil nil nil nil nil nil nil nil nil nil] 4 [redisplay--update-region-highlight run-hook-with-args redisplay--pre-redisplay-functions apply "#<compiled 0x40627db7>" redisplay_internal\ \(C\ function\) nil nil nil nil nil nil nil nil nil nil] 1 [redisplay_internal\ \(C\ function\) nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil] 1 [push-mark beginning-of-buffer funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil nil] 1 [multi-isearch-setup run-hooks isearch-mode isearch-forward funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil] 2 [isearch-update isearch-mode isearch-forward funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil] 1 [sit-for isearch-lazy-highlight-new-loop isearch-update isearch-mode isearch-forward funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil] 1 [redisplay sit-for isearch-lazy-highlight-new-loop isearch-update isearch-mode isearch-forward funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil] 2 [isearch-message isearch-search-and-update isearch-process-search-string isearch-process-search-char isearch-printing-char funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil] 5 [sit-for isearch-lazy-highlight-new-loop isearch-update isearch-search-and-update isearch-process-search-string isearch-process-search-char isearch-printing-char funcall-interactively call-interactively command-execute nil nil nil nil nil nil] 6 [redisplay sit-for isearch-lazy-highlight-new-loop isearch-update isearch-search-and-update isearch-process-search-string isearch-process-search-char isearch-printing-char funcall-interactively call-interactively command-execute nil nil nil nil nil] 24 [isearch-update isearch-search-and-update isearch-process-search-string isearch-process-search-char isearch-printing-char funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil] 4 [pos-visible-in-window-group-p isearch-update isearch-search-and-update isearch-process-search-string isearch-process-search-char isearch-printing-char funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil] 4 [pos-visible-in-window-group-p isearch-update isearch-repeat isearch-repeat-forward funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil] 3 [redisplay sit-for isearch-lazy-highlight-new-loop isearch-update isearch-repeat isearch-repeat-forward funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil] 6 [isearch-message isearch-update isearch-repeat isearch-repeat-forward funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil] 1 [isearch-done isearch-pre-command-hook nil nil nil nil nil nil nil nil nil nil nil nil nil nil] 1 [undefined nil nil nil nil nil nil nil nil nil nil nil nil nil nil nil] 1 [viper-change-cursor-color viper-change-state-to-insert viper-minibuffer-setup-sentinel read-from-minibuffer completing-read-default completing-read read-extended-command byte-code call-interactively command-execute nil nil nil nil nil nil] 2 [read-from-minibuffer completing-read-default completing-read read-extended-command byte-code call-interactively command-execute nil nil nil nil nil nil nil nil nil] 14 [completing-read-default completing-read read-extended-command byte-code call-interactively command-execute nil nil nil nil nil nil nil nil nil nil] 47 [line-move-visual line-move previous-line previous-line-or-history-element funcall-interactively call-interactively command-execute read-from-minibuffer completing-read-default completing-read read-extended-command byte-code call-interactively command-execute nil nil] 2 [viper-change-cursor-color viper-restore-cursor-color viper-insert-state-pre-command-sentinel run-hooks viper-pre-command-sentinel read-from-minibuffer completing-read-default completing-read read-extended-command byte-code call-interactively command-execute nil nil nil nil] 3 [read-event sit-for execute-extended-command funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil] 1 [viper-change-cursor-color viper-change-state-to-insert viper-insert funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil nil] 1 [apply "#<compiled 0x404b7fe5>" apply self-insert-command funcall-interactively call-interactively command-execute nil nil nil nil nil nil nil nil nil] 1 [image-search-load-path find-image eval "#<compiled 0x400f38d7>" mapcar tool-bar-make-keymap-1 tool-bar-make-keymap redisplay_internal\ \(C\ function\) read-from-minibuffer completing-read-default completing-read read-extended-command byte-code call-interactively command-execute nil] 1 [profiler-cpu-profile profiler-report-cpu profiler-report funcall-interactively call-interactively command-execute execute-extended-command funcall-interactively call-interactively command-execute nil nil nil nil nil nil] 2 [Automatic\ GC] 22)) (22328 54365 592253 0) nil]

  parent reply	other threads:[~2016-05-15 20:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-13 18:40 OS X (configure --with-ns) typing unresponsive with Org and Viper Michael Brand
2016-05-13 19:19 ` Paul Eggert
2016-05-14 11:31   ` Michael Brand
2016-05-14 11:42     ` Michael Brand
2016-05-14 13:59       ` Noam Postavsky
2016-05-14 17:26     ` Paul Eggert
2016-05-14 17:46       ` Michael Brand
2016-05-15 20:21   ` Michael Brand [this message]
2016-05-15 21:34     ` Paul Eggert
2016-05-16 12:22     ` Stefan Monnier

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALn3zoiJRCHrAQfbyUNXTYHC+FFeWcTKGR7QSGNBnZFZSDQWhw@mail.gmail.com \
    --to=michael.ch.brand@gmail.com \
    --cc=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).