unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Jonas Damm <mailing@jonas-damm.de>
To: Tassilo Horn <tsdh@gnu.org>
Cc: Jonas Damm <mailing@jonas-damm.de>,
	Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
Subject: Re: switch-to-buffer slow on PGTK
Date: Thu, 01 Feb 2024 20:51:30 +0100	[thread overview]
Message-ID: <87bk90c685.fsf@jonas-damm.de> (raw)
In-Reply-To: <d03b5b35-7774-4dac-9bce-b0353abb9896@betaapp.fastmail.com>

Thanks, I think i narrowed it down to the function ivy-rich-switch-buffer-root-lookup

     12,751,393  97% - command-execute
     12,751,393  97%  - funcall-interactively
      9,030,352  68%   - ivy-switch-buffer
      9,030,352  68%    - ivy-read
      9,030,352  68%     - apply
      9,030,352  68%      - #<subr ivy-read>
      8,992,824  68%       - read-from-minibuffer
      8,824,107  67%        - ivy--queue-exhibit
      8,824,107  67%         - ivy--exhibit
      8,817,497  67%          - ivy--update-minibuffer
      8,816,473  67%           - ivy--format
      8,815,449  67%            - ivy-rich--ivy-switch-buffer-transformer
      8,815,449  67%             - ivy-rich-format
      8,814,401  67%              - #<compiled -0x98309b0fa9e758e>
      8,814,401  67%               - ivy-rich-format-column
      4,577,350  34%                - ivy-rich-switch-buffer-project
      4,577,350  34%                 - ivy-rich-switch-buffer-root
      4,576,302  34%                  + ivy-rich-switch-buffer-root-lookup
          1,048   0%                    ivy-rich--switch-buffer-directory
      4,201,388  32%                - ivy-rich-switch-buffer-path
      4,201,388  32%                 - ivy-rich--switch-buffer-root-and-filename
      4,201,388  32%                  - ivy-rich-switch-buffer-root
      4,201,388  32%                   - ivy-rich-switch-buffer-root-lookup
 
"Tassilo Horn" <tsdh@gnu.org> writes:

> Am Do, 1. Feb 2024, um 18:15, schrieb Jonas Damm:
>> This is the output of the profiler:
>>
>>      22,744,487  98% + command-execute
>>         453,256   1% + redisplay_internal (C function)
>>           7,279   0%   Automatic GC
>>             912   0% + timer-event-handler
>>              21   0% + help-command-error-confusable-suggestions
>>               0   0%   ...
>>
>> How can i narrow it down further?
>
> You can expand the tree below command-execute by clicking on the +
> sign. But note that the time (22secs) also contains the time Emacs
> waited for your input.
>
> Bye,
> Tassilo




  reply	other threads:[~2024-02-01 19:51 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-01 11:24 switch-to-buffer slow on PGTK Jonas Damm
2024-02-01 14:21 ` Tassilo Horn
2024-02-01 16:48   ` Jonas Damm
2024-02-01 17:00     ` Tassilo Horn
2024-02-01 17:15       ` Jonas Damm
2024-02-01 17:19         ` Tassilo Horn
2024-02-01 19:51           ` Jonas Damm [this message]
2024-02-03 13:27           ` Jonas Damm

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=87bk90c685.fsf@jonas-damm.de \
    --to=mailing@jonas-damm.de \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tsdh@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.
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).