[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Need some help with Rmail/mbox
From: |
Stefan Monnier |
Subject: |
Re: Need some help with Rmail/mbox |
Date: |
Mon, 22 Sep 2008 10:10:48 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
> (1) Do decode-coding-region while specifying a multibyte
> buffer as TARGET.
> (2) Insert the contents of unibyte buffer into a multibyte
> buffer, and then perform decode-coding-region in that
> multibyte buffer.
> (3) Get a unibyte string form a unibyte buffer, and then
> decode it while specifying a multibyte buffer as TARGET.
> (4) Deocde a unibyte buffer into a mulitbyte string, and
> then insert it into a multibyte buffer.
> (Please note that using decode-coding-region directly in a
> unibyte-buffer is not reliable because if a coding system
> has post-read-converion function, that funcion (usually)
> works only in a mutlibyte buffer.)
> The efficiency is (1) > (2) > (3) > (4).
I'd have expected 3 to be more efficient than 2 since it doesn't need to
use the variable width multibyte representation of binary data.
[ I'd even expect 3 to be about as efficient as 1. ]
Is this because of the need to copy the string contents to a temp buffer
in order to run any potential pre-read-conversion function?
Stefan
- Re: Need some help with Rmail/mbox, (continued)
- Re: Need some help with Rmail/mbox, Eli Zaretskii, 2008/09/21
- Re: Need some help with Rmail/mbox, Stefan Monnier, 2008/09/21
- Re: Need some help with Rmail/mbox, Eli Zaretskii, 2008/09/21
- Re: Need some help with Rmail/mbox, Stefan Monnier, 2008/09/21
- Re: Need some help with Rmail/mbox, Eli Zaretskii, 2008/09/21
- Re: Need some help with Rmail/mbox, Stefan Monnier, 2008/09/21
- Re: Need some help with Rmail/mbox, Daiki Ueno, 2008/09/21
- Re: Need some help with Rmail/mbox, Stefan Monnier, 2008/09/21
- Re: Need some help with Rmail/mbox, Eli Zaretskii, 2008/09/22
- Re: Need some help with Rmail/mbox, Kenichi Handa, 2008/09/22
- Re: Need some help with Rmail/mbox,
Stefan Monnier <=
- Re: Need some help with Rmail/mbox, Kenichi Handa, 2008/09/23
- Re: Need some help with Rmail/mbox, Stefan Monnier, 2008/09/23
- Re: Need some help with Rmail/mbox, Kenichi Handa, 2008/09/23
- Re: Need some help with Rmail/mbox, Paul Michael Reilly, 2008/09/22
- Re: Need some help with Rmail/mbox, Stephen J. Turnbull, 2008/09/20
- Re: Need some help with Rmail/mbox, Daiki Ueno, 2008/09/20
- Re: Need some help with Rmail/mbox, Stephen J. Turnbull, 2008/09/22
Re: Need some help with Rmail/mbox, Richard M. Stallman, 2008/09/19
Re: Need some help with Rmail/mbox, Richard M. Stallman, 2008/09/19
Re: Need some help with Rmail/mbox, Eli Zaretskii, 2008/09/19