From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: 64 bit official Windows builds Date: Mon, 08 Feb 2016 20:06:22 +0200 Message-ID: <8337t3qdpd.fsf@gnu.org> References: <2577057e-98d3-41ce-ade2-1496648b09c3@googlegroups.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1454954819 2375 80.91.229.3 (8 Feb 2016 18:06:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Feb 2016 18:06:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 08 19:06:58 2016 Return-path: Envelope-to: geh-help-gnu-emacs@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 1aSqDC-0001nR-GR for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Feb 2016 19:06:58 +0100 Original-Received: from localhost ([::1]:47427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSqDB-0004YR-Im for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Feb 2016 13:06:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60799) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSqCy-0004Vc-2m for help-gnu-emacs@gnu.org; Mon, 08 Feb 2016 13:06:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aSqCt-0006bQ-1D for help-gnu-emacs@gnu.org; Mon, 08 Feb 2016 13:06:43 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:34470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aSqCs-0006bM-Up for help-gnu-emacs@gnu.org; Mon, 08 Feb 2016 13:06:38 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1540 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1aSqCs-0004QE-72 for help-gnu-emacs@gnu.org; Mon, 08 Feb 2016 13:06:38 -0500 In-reply-to: (moocow062@gmail.com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109053 Archived-At: > Date: Mon, 8 Feb 2016 09:44:53 -0800 (PST) > From: moocow062@gmail.com > > Could I ask, what is the benefit of 64 bits compared to 32 bits for windows ? It will run roughly twice faster. > I can see that if you have to edit files bigger than 2Gb, it is necessary, but otherwise doubling the size of the pointers just makes it slower (halves the cache size) and takes more memory. First, you can have several large buffers, each one smaller than 2GB, but all of them together could weigh in at, like, 4GB or more, something a 32-bit executable, even when running on a 64-bit Windows, cannot have. Second, large files happen more frequently nowadays than you may think. Third, when Emacs is built with a 64-bit compiler, it runs faster, not slower, because running a 32-bit executable on a 64-bit Windows requires expensive thunking for every call to any Windows API, something that happens a lot. Btw, Emacs 25 can be built as a 32-bit binary that supports 64-bit ints, which allows large buffers (up to 2GB), at a price of being slower by about 30%.