unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Is it possible to profile elisp?
@ 2022-11-20 14:17 Perry Smith
  2022-11-20 20:20 ` Eli Zaretskii
  2022-11-21 11:42 ` Alessandro Bertulli
  0 siblings, 2 replies; 3+ messages in thread
From: Perry Smith @ 2022-11-20 14:17 UTC (permalink / raw)
  To: help-gnu-emacs

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

I do a grep and get some results into the *grep* buffer.  The hits happen to be in Org mode files if that matters.

I do C-X ` and it takes 5 seconds to bring up the buffer.  A next C-X ` are in the same file and are instant.  But the one that has to open a different file again takes 4 to 5 seconds.

This by itself doesn’t bother me that much.  But I’m actually chasing weird problems and I’m wondering if this is connected to it or not.

The weird problems are with lsp-mode using a package called lsp-tailwindcss.  It is suppose to pop up completion suggestions.  Every once in a VERY great while, it does.  But usually it does not.  I can pause and not enter any keys for a minute and no suggestions pop up.  I have

company-minimum-prefix-length set to 1 and company-idle-delay set to 0.0.  If I set the idle time to 0.5 and prefix length to 2, the completions pop up but I have to sit for about 2 seconds before anything pops up.

So… I’m theorizing that I’ve got something wasting time or is horribly inefficient but I have no idea how to track it down.

I’m on one of Apple’s best / latest laptops so I believe I have plenty of horsepower and the CPU stats are close to 0.

Thank you for your time,
Perry Smith

p.s. I am subscribed to this list but I do not receive any emails so please CC me on your replies.  I will also track down this in the archive in a few days.


[-- Attachment #2: Message signed with OpenPGP --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

end of thread, other threads:[~2022-11-21 11:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-20 14:17 Is it possible to profile elisp? Perry Smith
2022-11-20 20:20 ` Eli Zaretskii
2022-11-21 11:42 ` Alessandro Bertulli

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