emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: cast problem in code conversion


From: Juri Linkov
Subject: Re: cast problem in code conversion
Date: Tue, 28 Dec 2004 03:19:32 +0200
User-agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux)

Kenichi Handa <address@hidden> writes:
> In article <address@hidden>, YAMAMOTO Mitsuharu <address@hidden> writes:
>> Calculation of the value of `ratio' in `code_convert_region' is
>> missing a cast to float.  That makes the result inaccurate.
>
>> In Emacs 21.2, the part in question was as follows:
>>        float ratio = coding->produced - coding->consumed;
>>        ratio /= coding->consumed;
>
>> But in Emacs 21.3,
>>            ratio = (coding->produced - coding->consumed) / coding->consumed;
>
>> Reverting this change drastically improves performance when opening a
>> large binary file.  For example, opening the Emacs executable becomes
>> 6 times faster for me.
>
> Thank you for finding this bug.  I've just installed a fix.

Now visiting large files is much faster!  Is it possible that
emacs-unicode which still takes too much time to open large files,
suffers from a similar problem?

-- 
Juri Linkov
http://www.jurta.org/emacs/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]