unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Kenichi Handa <handa@m17n.org>
Cc: eliz@gnu.org, rms@gnu.org, emacs-devel@gnu.org
Subject: Re: One example of code I can't understand
Date: Wed, 22 Jul 2009 15:58:28 +0900	[thread overview]
Message-ID: <87ab2xgq5n.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <tl7tz16j1tv.fsf@m17n.org>

Kenichi Handa writes:

 > It is theoretically possible to modify all of them to use a
 > multibyte buffer that contains only ASCII and eight-bit
 > chars.  But, as it may make the operations slow, I don't see
 > a merit in doing that.

XEmacs has always done it this way; it is more than a theoretical
possibility.  In XEmacs it doesn't make much difference for the
operations you describe (less than a factor of 2) because the overhead
of interfacing to the pipes is greater than the overhead of
conversion.  This is based on some profiling Ben did many years ago;
ISTR it was basically linear up to 128MB or maybe 256MB.  I don't
recall the exact numbers, but I do remember being very surprised that
it was substantially less than 2.

In XEmacs, I think it makes a much bigger difference for mail buffers
(VM, or Gnus nnfolder) because of the frequency of byte<->char
conversions in those more or less random access applications.





  parent reply	other threads:[~2009-07-22  6:58 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-19 23:21 One example of code I can't understand Richard Stallman
2009-07-20  3:13 ` Eli Zaretskii
2009-07-20 19:01   ` Richard Stallman
2009-07-21  0:51     ` Kenichi Handa
2009-07-21  3:07       ` Eli Zaretskii
2009-07-21  4:10         ` Kenichi Handa
2009-07-21 14:41       ` Richard Stallman
2009-07-22  6:58       ` Stephen J. Turnbull [this message]
2009-07-21  0:59     ` Stefan Monnier
2009-07-21 14:41       ` Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2009-07-19 23:21 Richard Stallman
2009-07-20 18:13 ` Stefan Monnier
2009-07-20 20:50   ` Reiner Steib
2009-07-21 14:41     ` Richard Stallman
2009-07-21 17:34       ` Reiner Steib
2009-07-22 22:21         ` Richard Stallman
2009-07-21 14:42   ` Richard Stallman
2009-07-21 18:21     ` Eli Zaretskii
2009-07-19 23:21 Richard Stallman

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=87ab2xgq5n.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=handa@m17n.org \
    --cc=rms@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).