From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?Bj=C3=B6rn_Lindqvist?= Newsgroups: gmane.emacs.devel Subject: Bloat in the Emacs Windows package Date: Wed, 17 Apr 2019 07:01:56 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="119219"; mail-complaints-to="usenet@blaine.gmane.org" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Apr 17 06:58:42 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hGced-000Uqq-3q for ged-emacs-devel@m.gmane.org; Wed, 17 Apr 2019 06:58:39 +0200 Original-Received: from localhost ([127.0.0.1]:46943 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGcec-0002eC-35 for ged-emacs-devel@m.gmane.org; Wed, 17 Apr 2019 00:58:38 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:45974) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hGceW-0002e4-1a for emacs-devel@gnu.org; Wed, 17 Apr 2019 00:58:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hGceV-0003V8-0l for emacs-devel@gnu.org; Wed, 17 Apr 2019 00:58:31 -0400 Original-Received: from mail-vs1-xe36.google.com ([2607:f8b0:4864:20::e36]:37780) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hGceU-0003UZ-Og for emacs-devel@gnu.org; Wed, 17 Apr 2019 00:58:30 -0400 Original-Received: by mail-vs1-xe36.google.com with SMTP id w13so12879477vsc.4 for ; Tue, 16 Apr 2019 21:58:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=6mG1lWdMYC2jFIZuwQ0L72h8RoRpRILN+msJLQIweWI=; b=PiCMQv9WFbDq76Sg0jZFPdr2vWf208z+URP9RLJhR+nVyyCGiwJ3Of8VumNUKBb+Q4 uWAtxIbSJDk/Uk6HCtgpn8Op1OHC/208bVdbfbsvKQeR3NqA1ev/LnXQGRS4DOW9Jydh KvHWd2hm0TXQI0fugDNWhzM/wfLa1rTVfhKDW+Exen6oa+Awgh7pLBaMMuTKxKGyMuoe cm8lDemfbs+aFAQZXOSiiTCYbARlL9ZAc5BRjsTCLImfsMrUYaE7T5rk5+9H/aIhhDF9 7PGAJ40RA+1x1WQJmg5QFnN1nO0JgHJVkcO7Wqhj9GOUGQmJzzJwZdQLn2VvA/Rrk2rr 7hhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-transfer-encoding; bh=6mG1lWdMYC2jFIZuwQ0L72h8RoRpRILN+msJLQIweWI=; b=mbd+kH04MyfLNLVplBau8wIRpiuqID7bj4ngHIGzIMS9zEpxyHVzlF3ECiSq0JMNJT 8hDGouQlTnbfQjgIPXQZAMEBPFxPjaETLffkisXo6Ss6VfIvTdvHCRdDS63xqX6hO7pH WrzL7ylZLJ5+mrJV3J7W6v2VqaYS2ENEzwA2u60z86wdDljBFUa56ScI/MlZLnnVCY6q wLHCtF/PPGCMnhskgUzSs3J+qs2nVdNWBZidGJ2n7awNZ3G/dIQw4DK24dS64SGqMkS/ uXoftMX4Fm59W6LftPGB1+JF/9aQn3UaY7Y72kAJ6AFaiRHZEWIMUgR+BkAo1SJMHlqc y2/A== X-Gm-Message-State: APjAAAWvWvVF5wOnoGnojlYjVDlxMtJOdEB2a8vC3iUecW0v0x89REw4 9VaJXgDy9S4gWqEbwN7HvUlCr8xipe6elyqeRfM0/nO8 X-Google-Smtp-Source: APXvYqyei6Is4CRkpeHIqVBhVC0+ScJfKhCBo9zLpE+7/6NYvakhciPVDqnWyYjPb7eSaV6m2gE4aFPR7GLDsRISmfA= X-Received: by 2002:a67:99c3:: with SMTP id b186mr29280034vse.50.1555477109291; Tue, 16 Apr 2019 21:58:29 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::e36 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:235565 Archived-At: Hello Emacs developers, I noticed that the Emacs build of Windows has grown a lot so I started a thread in help-gnu-emacs called "Emacs 26.1 on Windows is HUGE" and was referred to this list. So see that thread for background info. The numbers for the Emacs 24.5.1 and 26.1 Windows files are: emacs-26.1-x86_64-no-deps.zip download size: 106M disk size: 410M emacs-26.1-x86_64.zip download size: 210M disk size: 725M emacs-24.5-bin-i686-mingw32.zip download size: 48M disk size: 167M For comparison jdk-11.0.2 consumes 278M. The emacs-26.1-x86_64.zip file is really big. It contains a lot of files which I wonder why they are necessary. Some examples python2.7.exe gdbus.exe libgdk_pixbuf-2.0-0.dll include/jasper/ include/GL include/gnutls AND include/openssl lib/systemd sqlite3200.dll lib/pkgconfig lib/cmake share/bash-completion share/vala ... The emacs-26.1-x86_64-no-deps.zip installation is smaller, but still double the size of the corresponding 24.5 installation. This seem to be because all binaries now include debugging symbols. Some examples of the size increases: addpm.exe 577 kB =3D> 2 282 kB ctags.exe 956 kB =3D> 3 245 kB emacs.exe 8 989 kB =3D> 121 740 kB emacs-24.5.exe 8 989 kB =3D> 121 740 kB (emacs-26.1.exe) The emacs.exe growth is especially annoying because the file is copied. This seems like poor packaging to me. Why not have an emacs.bat file calling emacs-26.1.exe and immediately save 121M? According to the thread on help-gnu-emacs Emacs binaries used to be stripped of debugging symbols, but aren't anymore and that is what is causing the size increase. I wonder if we can return that? Most software ported to Windows, such as MinGW, strips debugging symbols so it is customary. For most users they are useless because they don't run emacs.exe in gdb.exe. For people with limited disk space, metered internet or old hardware the new, bigger Emacs is a nuisance. On my machine it increases Emacs start time by a second (although I don't know if that is caused by the debugging symbols or if it is something else). It is also aesthetically displeasing -- hackers like minimalism and hate bloat. And while on the subject of Windows packaging. How come there is no MSI installer for Emacs? It shouldn't be to hard to put one together and it would make Emacs a little easier to install for newbies. --=20 mvh/best regards Bj=C3=B6rn Lindqvist