emacs-devel
[Top][All Lists]
Advanced

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

Re: Enlarge MAX_ALLOCA?


From: Dmitry Antipov
Subject: Re: Enlarge MAX_ALLOCA?
Date: Fri, 20 Jun 2014 19:44:46 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0

On 06/20/2014 07:15 PM, Herring, Davis wrote:

We could also allocate it less frequently by allocating it statically
(unless en/decoding can be reentrant, which seems unlikely).

We can also estimate its size before blindly allocating 64 (or 32, or
whatever else). For example, if we decode from 16-character string
to *code-conversion-work*, we need...hm, what's the upper bound?
May be 16 * MAX_MULTIBYTE_LENGTH?

Dmitry




reply via email to

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