unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
To: Dan Nicolaescu <dann@ics.uci.edu>
Cc: emacs-devel@gnu.org
Subject: Re: profiling emacs-23.1 vs emacs-22.3
Date: Wed, 26 Aug 2009 15:01:49 +0900	[thread overview]
Message-ID: <E1MgBZt-0006U4-9O@etlken> (raw)
In-Reply-To: <200908251847.n7PIlb4C012720@godzilla.ics.uci.edu> (message from Dan Nicolaescu on Tue, 25 Aug 2009 11:47:37 -0700 (PDT))

In article <200908251847.n7PIlb4C012720@godzilla.ics.uci.edu>, Dan Nicolaescu <dann@ics.uci.edu> writes:

> the -nw -Q session has fewer charsets loaded, the -Q version loads the
> charset for BIG5 (and others) at startup even though it's running in a
> LANG=C environment.

Some CJK charsets are necessary to create the default
fontset.  I think it's possible to avoid loading unnecessary
charsets for creating the default fontset.  I'll work on it.

But, I think the main sloness of -Q version is fontsets.  A
fontset is a char-table whose elements are vectors, and thus
the just-installed optimization doesn't work.

By the way, I did this test with (1) Emacs-22, (2) trunk
(without gc optimization), and (3) trunk (with gc
optimization).

% time LANG=C emacs -Q -batch --eval '(dotimes (i 100) (garbage-collect))'

The result is:

(1) user 0m1.460s
(2) user 0m1.772s
(3) user 0m1.644s

So, (3) is still 13% slower than (1), but I think it's a
necessary cost for having the full Unicode support.  And
usually the slowness of GC doesn't direclty affect the total
execution time.

> It seems that the charset data structure is too GC intensive, maybe it's
> time to rethink it to make it less so.

For charset data, I agree that it doesn't have to be a
char-table (for encoding) nor a vector (for decoding).  I'll
consider replacing them with some C structure.

---
Kenichi Handa
handa@m17n.org




  reply	other threads:[~2009-08-26  6:01 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-03 20:29 profiling emacs-23.1 vs emacs-22.3 Dan Nicolaescu
2009-08-04 17:10 ` Leo
2009-08-04 19:50 ` Chong Yidong
2009-08-04 19:56   ` Dan Nicolaescu
2009-08-05  7:47 ` Dan Nicolaescu
2009-08-24  6:52 ` Kenichi Handa
     [not found]   ` <200908240807.n7O87ubg024643@godzilla.ics.uci.edu>
2009-08-24 11:39     ` Kenichi Handa
2009-08-24 18:26       ` Dan Nicolaescu
2009-08-25  6:07         ` Kenichi Handa
2009-08-25 18:47           ` Dan Nicolaescu
2009-08-26  6:01             ` Kenichi Handa [this message]
2009-08-26  6:33               ` Dan Nicolaescu
2009-08-26  8:06                 ` Kenichi Handa
2009-08-26 20:46                   ` Andreas Schwab
2009-08-27  2:02                     ` Kenichi Handa
2009-08-27  6:27               ` Kenichi Handa
2009-08-24 22:18       ` Alan Mackenzie

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=E1MgBZt-0006U4-9O@etlken \
    --to=handa@m17n.org \
    --cc=dann@ics.uci.edu \
    --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).