From: Eli Zaretskii <eliz@gnu.org>
To: Miles Bader <miles@gnu.org>
Cc: julien@danjou.info, monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: [PATCH] Fix D-Bus string encoding.
Date: Wed, 09 Jun 2010 23:49:00 -0400 [thread overview]
Message-ID: <E1OMYlI-00076m-1j@fencepost.gnu.org> (raw)
In-Reply-To: <877hm7iovq.fsf@catnip.gol.com> (message from Miles Bader on Thu, 10 Jun 2010 11:48:41 +0900)
> From: Miles Bader <miles@gnu.org>
> System-Type: x86_64-unknown-linux-gnu
> Date: Thu, 10 Jun 2010 11:48:41 +0900
> Cc: julien@danjou.info, Stefan Monnier <monnier@iro.umontreal.ca>,
> emacs-devel@gnu.org
> Reply-To: Miles Bader <miles@gnu.org>
>
> Isn't there some function in Emacs which "converts", but internally
> checks to see if the desired output encoding is the same as Emacs'
> internal encoding, and avoids the actual conversion in that case?
What do you mean by "encoding is the same"? If the internal encoding
is utf-8-emacs, while the external is utf-8, are they "the same" or
not?
Anyway, I think avoiding the conversion in this case is a classic
example of premature optimization: no one have made the case that
performance matters in this case. If you look at encode_coding_utf_8
you will see that it's no more than a fancy copy for almost every
character (notable exception being eight-bit characters, aka raw
bytes). What exactly are we saving here by "avoiding the conversion"?
Am I missing something?
prev parent reply other threads:[~2010-06-10 3:49 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-08 21:39 Bug with UTF-8 string and dbus Julien Danjou
2010-06-09 0:43 ` Stefan Monnier
2010-06-09 1:17 ` Eli Zaretskii
2010-06-09 6:34 ` Julien Danjou
2010-06-09 7:27 ` Eli Zaretskii
2010-06-09 8:51 ` Jan Djärv
2010-06-09 9:30 ` Eli Zaretskii
2010-06-09 7:28 ` Jan Djärv
2010-06-09 14:08 ` Stefan Monnier
2010-06-09 14:24 ` Julien Danjou
2010-06-09 15:01 ` Andreas Schwab
2010-06-09 15:39 ` Michael Albinus
2010-06-09 18:11 ` Stefan Monnier
2010-06-09 19:45 ` Davis Herring
2010-06-09 20:30 ` Andreas Schwab
2010-06-09 20:42 ` David Kastrup
2010-06-09 22:19 ` Andreas Schwab
[not found] ` <19472.35590.940217.577634@uwakimon.sk.tsukuba.ac.jp>
2010-06-10 8:05 ` Andreas Schwab
2010-06-09 9:16 ` [PATCH] Fix D-Bus string encoding Julien Danjou
2010-06-10 0:20 ` Stefan Monnier
2010-06-10 1:56 ` Eli Zaretskii
2010-06-10 2:48 ` Miles Bader
2010-06-10 3:49 ` Eli Zaretskii [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=E1OMYlI-00076m-1j@fencepost.gnu.org \
--to=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=julien@danjou.info \
--cc=miles@gnu.org \
--cc=monnier@iro.umontreal.ca \
/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 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.