all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Stack-allocated objects again (+benchmark)
@ 2014-09-29  7:09 Dmitry Antipov
  2014-09-30  2:43 ` Paul Eggert
  0 siblings, 1 reply; 6+ messages in thread
From: Dmitry Antipov @ 2014-09-29  7:09 UTC (permalink / raw
  To: Emacs development discussions

1) In r117971, I've made an attempt to follow KISS principle and
redesign this stuff for simplicity and speed rather than versatility.

2) I am constantly asked about benchmarks.  OK, running this code:

(defun put-property-benchmark ()
   (interactive)
   (setq buffer-undo-list t)
   (let ((oldgc gcs-done)
         (oldtime (float-time)))
     (while (re-search-forward "[a-f0-9]+" nil t)
       (put-text-property (match-beginning 0) (match-end 0)
			 'face 'font-lock-comment-face))
     (message "GCs: %d Elapsed time: %f seconds"
	     (- gcs-done oldgc) (- (float-time) oldtime))))

through a ~35M dump generated with

od -v -t x2 < glibc-2.19.tar.xz > glibc.txt

shows 55GCs/23.7s with USE_STACK_LISP_OBJECTS and 66GCs/27.9s
without them.  Hopefully this simple benchmark is "real enough".

Dmitry



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

end of thread, other threads:[~2014-09-30 20:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-29  7:09 Stack-allocated objects again (+benchmark) Dmitry Antipov
2014-09-30  2:43 ` Paul Eggert
2014-09-30  8:25   ` Dmitry Antipov
2014-09-30 20:19     ` Paul Eggert
2014-09-30 14:05   ` Eli Zaretskii
2014-09-30 15:37     ` Dmitry Antipov

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.