From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Antipov Newsgroups: gmane.emacs.devel Subject: Re: Enlarge MAX_ALLOCA? Date: Fri, 20 Jun 2014 19:44:46 +0400 Message-ID: <53A456EE.5050704@yandex.ru> References: <83sin0sx98.fsf@gnu.org> <83lhsssq1b.fsf@gnu.org> <83ionwrrc6.fsf@gnu.org> <83zjh7ra6a.fsf@gnu.org>, NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1403279124 14244 80.91.229.3 (20 Jun 2014 15:45:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2014 15:45:24 +0000 (UTC) Cc: "handa@gnu.org" , "emacs-devel@gnu.org" To: Stefan Monnier , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jun 20 17:45:17 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Wy108-0004cK-Ux for ged-emacs-devel@m.gmane.org; Fri, 20 Jun 2014 17:45:17 +0200 Original-Received: from localhost ([::1]:41662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wy108-0006M9-DY for ged-emacs-devel@m.gmane.org; Fri, 20 Jun 2014 11:45:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wy0zz-0006JF-Qv for emacs-devel@gnu.org; Fri, 20 Jun 2014 11:45:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wy0zs-0008Gl-Q8 for emacs-devel@gnu.org; Fri, 20 Jun 2014 11:45:07 -0400 Original-Received: from forward7l.mail.yandex.net ([84.201.143.140]:60713) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wy0zk-0008E4-35; Fri, 20 Jun 2014 11:44:52 -0400 Original-Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [37.140.190.27]) by forward7l.mail.yandex.net (Yandex) with ESMTP id 5BE20BC138D; Fri, 20 Jun 2014 19:44:50 +0400 (MSK) Original-Received: from smtp2o.mail.yandex.net (localhost [127.0.0.1]) by smtp2o.mail.yandex.net (Yandex) with ESMTP id B16CC36A247A; Fri, 20 Jun 2014 19:44:49 +0400 (MSK) Original-Received: from 172.gprs.mts.ru (172.gprs.mts.ru [213.87.132.172]) by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id zrjOZHZDzI-imrGGF68; Fri, 20 Jun 2014 19:44:48 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: fea5e51c-83a8-41e7-accc-c5bce08b1a44 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1403279088; bh=EqRMvxiDCwtQZ0f1WBhQg4V+BxX4piS6MqlvuU390B4=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=geLMx9gDWF75YoHsEfX2APKhSGrZJlrNZrkycS8xzvrJgPK1DQU2qOBKfBKiOjGxM n6Nk58s8bZN+PLdksDzP1kkb/Uo8mc6o+MyPPwLsWPAsgvgF5YeMAFf2P8uC7JRsL2 OdrvuKN68okmoqSMSDDdB1hRqlbgtusjLmCcrm28= Authentication-Results: smtp2o.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] [fuzzy] X-Received-From: 84.201.143.140 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172577 Archived-At: 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