unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* c-beginning-of-defun in the past and presence
@ 2014-09-21  9:36 martin rudalics
  2014-09-24 22:25 ` Alan Mackenzie
  0 siblings, 1 reply; 2+ messages in thread
From: martin rudalics @ 2014-09-21  9:36 UTC (permalink / raw)
  To: emacs-devel; +Cc: Alan Mackenzie

Dear Alan and friends

Running with emacs -Q

(with-current-buffer (find-file-noselect "~/src/xdisp.c")
   (elp-instrument-function 'c-beginning-of-defun)
   (goto-char (point-max))
   (condition-case nil
       (beginning-of-defun 1000)
     (error nil))
   (elp-results))

gets me here as elapsed time

Emacs 24.3:   1.672

Emacs 24.4:   4.516

Emacs trunk: 27.375


Running with emacs -Q

(with-current-buffer (find-file-noselect "~/src/xdisp.c")
   (elp-instrument-function 'c-beginning-of-defun)
   (goto-char (point-max))
   (condition-case nil
       (while (beginning-of-defun) nil)
     (error nil))
   (elp-results))

gets me here

              Call Count  Elapsed Time  Average Time

Emacs 24.3:  353         23.842999999  0.0675439093

Emacs 24.4:  353         43.000000000  0.1218130311

Emacs trunk: 353        136.48399999   0.3866402266


Please try to make things behave reasonably again.

Thanks, martin



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

end of thread, other threads:[~2014-09-24 22:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-21  9:36 c-beginning-of-defun in the past and presence martin rudalics
2014-09-24 22:25 ` Alan Mackenzie

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