unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Antipov <dmantipov@yandex.ru>
To: Emacs development discussions <emacs-devel@gnu.org>
Subject: Stack-allocated objects again (+benchmark)
Date: Mon, 29 Sep 2014 11:09:10 +0400	[thread overview]
Message-ID: <54290596.4060702@yandex.ru> (raw)

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



             reply	other threads:[~2014-09-29  7:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-29  7:09 Dmitry Antipov [this message]
2014-09-30  2:43 ` Stack-allocated objects again (+benchmark) 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

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=54290596.4060702@yandex.ru \
    --to=dmantipov@yandex.ru \
    --cc=emacs-devel@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.
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).