From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.bugs Subject: bug#8528: 24.0.50; 32-bit Emacs with apparent 128M buffer size limit Date: Wed, 20 Apr 2011 23:18:55 -0700 Organization: UCLA Computer Science Department Message-ID: <4DAFCC4F.1080900@cs.ucla.edu> References: <87bp00iqih.fsf@gmail.com> <83r58w2lst.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1303367859 7352 80.91.229.12 (21 Apr 2011 06:37:39 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 21 Apr 2011 06:37:39 +0000 (UTC) Cc: 8528@debbugs.gnu.org, Evans Winner To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Apr 21 08:37:33 2011 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QCnW8-0004wA-Av for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Apr 2011 08:37:32 +0200 Original-Received: from localhost ([::1]:45838 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCnW7-0001LP-RZ for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Apr 2011 02:37:31 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:34697) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCnW5-0001L9-3I for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 02:37:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCnW4-0004La-8f for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 02:37:29 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51017) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCnW4-0004LW-6l for bug-gnu-emacs@gnu.org; Thu, 21 Apr 2011 02:37:28 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1QCnFC-0007wx-JL; Thu, 21 Apr 2011 02:20:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Eggert Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Apr 2011 06:20:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 8528 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 8528-submit@debbugs.gnu.org id=B8528.130336674930497 (code B ref 8528); Thu, 21 Apr 2011 06:20:02 +0000 Original-Received: (at 8528) by debbugs.gnu.org; 21 Apr 2011 06:19:09 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QCnEK-0007vp-8M for submit@debbugs.gnu.org; Thu, 21 Apr 2011 02:19:09 -0400 Original-Received: from smtp.cs.ucla.edu ([131.179.128.62]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QCnEI-0007vK-9M for 8528@debbugs.gnu.org; Thu, 21 Apr 2011 02:19:06 -0400 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by smtp.cs.ucla.edu (Postfix) with ESMTP id 945C539E8105; Wed, 20 Apr 2011 23:19:00 -0700 (PDT) X-Virus-Scanned: amavisd-new at smtp.cs.ucla.edu Original-Received: from smtp.cs.ucla.edu ([127.0.0.1]) by localhost (smtp.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9zB+2pHzON56; Wed, 20 Apr 2011 23:19:00 -0700 (PDT) Original-Received: from [192.168.1.10] (pool-71-189-109-235.lsanca.fios.verizon.net [71.189.109.235]) by smtp.cs.ucla.edu (Postfix) with ESMTPSA id 2036D39E80B1; Wed, 20 Apr 2011 23:19:00 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.14) Gecko/20110223 Thunderbird/3.1.8 In-Reply-To: <83r58w2lst.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Thu, 21 Apr 2011 02:20:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:45909 Archived-At: On 04/20/11 22:52, Eli Zaretskii wrote: > Paul, could you please tell where do you see twice doubling of the > file size in insert-file-contents? I assumed that it was because the internal buffers contain an Emacs-encoded version of the file, which could be as long as four times the actual file size, because a single byte in the file might expand to 4 bytes inside Emacs in some cases. That would explain the behavior that you saw: if your file's internal encoding was the same as the external, you wouldn't observe any problem. The problem would be exhibited only with files containing many characters that bloat when read into memory. However, I didn't investigate the matter thoroughly; perhaps someone who's more expert on how Emacs encodes things internally could speak up.