unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Leo Liu <sdl.web@gmail.com>
Cc: 15808@debbugs.gnu.org
Subject: bug#15808: 24.3; thing-at-point slow for url and email
Date: Tue, 05 Nov 2013 21:18:52 -0500	[thread overview]
Message-ID: <jwv8ux2cm7g.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <m1iow6bb0h.fsf@gmail.com> (Leo Liu's message of "Wed, 06 Nov 2013 08:59:42 +0800")

>> Try it with M-x profiler-start RET RET ... M-x profiler-report RET.
> I got the following which doesn't seem useful. Am I wrong? Thanks - Leo

You need to `C-u RET' on the lines with the + to see more details.

> + if                                                              144  35%

The count is too small: this is a sample-based profiler, so you need
a long enough runtime to get meaningful results (otherwise, the various
stack fragments collected can't be pieced together to get the whole tree).

Also, it seems some of the code is interpreted.  If the result is still
hard to interpret, you might want to try and byte-compile that code.

> + call-interactively                                        6,531,039  99%

That looks much more promising.  What does C-u RET show?


        Stefan





  reply	other threads:[~2013-11-06  2:18 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-05  2:52 bug#15808: 24.3; thing-at-point slow for url and email Leo Liu
2013-11-05  8:41 ` Andreas Röhler
2013-11-05 16:32 ` Stefan Monnier
2013-11-06  0:59   ` Leo Liu
2013-11-06  2:18     ` Stefan Monnier [this message]
2013-11-06  3:35       ` Leo Liu
2013-11-06  3:45       ` Leo Liu
2013-11-06  6:55         ` Stefan Monnier
2013-11-06  9:10           ` Leo Liu

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=jwv8ux2cm7g.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=15808@debbugs.gnu.org \
    --cc=sdl.web@gmail.com \
    /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).