From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#23967: 25.1.50; Slow compilation of ns-win.el Date: Wed, 13 Jul 2016 14:19:21 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1468412443 18934 80.91.229.3 (13 Jul 2016 12:20:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 13 Jul 2016 12:20:43 +0000 (UTC) To: 23967@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jul 13 14:20:28 2016 Return-path: Envelope-to: geb-bug-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 1bNJ9F-00041d-CM for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jul 2016 14:20:17 +0200 Original-Received: from localhost ([::1]:47104 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNJ9E-0001N8-Cw for geb-bug-gnu-emacs@m.gmane.org; Wed, 13 Jul 2016 08:20:16 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34754) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNJ96-0001Ix-15 for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2016 08:20:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNJ90-0004hQ-CP for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2016 08:20:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36810) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNJ90-0004hJ-8Z for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2016 08:20:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1bNJ8z-0008GW-Vh for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2016 08:20:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 13 Jul 2016 12:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 23967 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.146841239031748 (code B ref -1); Wed, 13 Jul 2016 12:20:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 13 Jul 2016 12:19:50 +0000 Original-Received: from localhost ([127.0.0.1]:49147 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNJ8o-0008Fx-0w for submit@debbugs.gnu.org; Wed, 13 Jul 2016 08:19:50 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43693) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bNJ8l-0008Fk-Vo for submit@debbugs.gnu.org; Wed, 13 Jul 2016 08:19:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNJ8f-0004cz-CZ for submit@debbugs.gnu.org; Wed, 13 Jul 2016 08:19:42 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:59780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNJ8f-0004cU-8v for submit@debbugs.gnu.org; Wed, 13 Jul 2016 08:19:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34626) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNJ8c-0000sD-HR for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2016 08:19:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bNJ8X-0004aC-Dj for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2016 08:19:37 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:48439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bNJ8X-0004YG-2x for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2016 08:19:33 -0400 Original-Received: from cm-84.215.1.64.getinternet.no ([84.215.1.64] helo=stories) by hermes.netfonds.no with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1bNJ8M-00066M-Nc for bug-gnu-emacs@gnu.org; Wed, 13 Jul 2016 14:19:24 +0200 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:120986 Archived-At: I've been looking slightly at why "make -j8" isn't as parallel as you'd expect, and in my tests it's because one single .el compilation job is weirdly slow. To test: If I say "make bootstrap" (to get rid of everything) and then halt the compilation after it's made bootstrap-emacs [larsi@stories ~/src/emacs/trunk/lisp]$ time ../src/bootstrap-emacs -batch --no-site-file --no-site-lisp --eval "(setq load-prefer-newer t)" -l bytecomp -f byte-compile-refresh-preloaded -f batch-byte-compile ../lisp/term/ns-win.el real 0m44.097s user 0m44.156s sys 0m0.012s 44 seconds to compile it. From stracing, the thing it says before it ... doesn't say anything for half a minute is: readlinkat(AT_FDCWD, "/home/larsi/src/emacs/trunk/lisp/international/uni-decomposition.el", 0x7fff42af6240, 1024) = -1 EINVAL (Invalid argument) So... er... it has something to do with Unicode? This may not be a bug or anything, but it's perhaps something that should be looked at to speed up the initial Emacs compilation. In GNU Emacs 25.1.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.5) of 2016-07-12 built on stories Repository revision: df7774be39af76d3072a0278ef815a47bf50dfe9 Windowing system distributor 'The X.Org Foundation', version 11.0.11604000 System Description: Debian GNU/Linux 8.5 (jessie) Recent messages: Error reading dir-locals: (error "Invalid byte code in /home/larsi/src/emacs/trunk/lisp/emacs-lisp/cl-macs.elc") Eager macro-expansion failure: (error "Invalid byte code in /home/larsi/src/emacs/trunk/lisp/emacs-lisp/cl-macs.elc") [8 times] Error: (error "Invalid byte code in /home/larsi/src/emacs/trunk/lisp/emacs-lisp/cl-macs.elc") previous-line: Beginning of buffer Error reading dir-locals: (error "Invalid byte code in /home/larsi/src/emacs/trunk/lisp/emacs-lisp/cl-macs.elc") Eager macro-expansion failure: (error "Invalid byte code in /home/larsi/src/emacs/trunk/lisp/emacs-lisp/cl-macs.elc") [8 times] Error: (error "Invalid byte code in /home/larsi/src/emacs/trunk/lisp/emacs-lisp/cl-macs.elc") Mark saved where search started Mark set Making completion list... Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Emacs-Lisp Minor modes in effect: global-whitespace-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t Load-path shadows: /home/larsi/src/cddb.el/expect hides /home/larsi/lisp/expect /home/larsi/src/cddb.el/captitle hides /home/larsi/lisp/captitle /home/larsi/src/clock.el/clock hides /home/larsi/lisp/clock ~/pgnus/contrib/vcard hides /home/larsi/lisp/vcard /home/larsi/src/pvr.el/pvr hides /home/larsi/lisp/pvr ~/lisp/zenirc-2.112/src/zenirc-example hides /home/larsi/lisp/zenirc-example ~/pgnus/contrib/compface hides /home/larsi/src/emacs/trunk/lisp/image/compface Features: (shadow ecomplete emacsbug sendmail vc vc-dispatcher map pp misearch multi-isearch copyright vc-cvs shr-color color eww gnus-html help-fns radix-tree sort gnus-cite smiley ansi-color url-queue url-cache mm-archive gnus-async gnus-dup qp gnus-ml gmane spam-gmane dns mm-url disp-table gnus-fun gnus-mdrtn gnus-topic pop3 nndoc nnmbox utf-7 nnml nnfolder network-stream starttls nnir spam-report spam spam-stat gnus-uu yenc gnus-delay gnus-draft gnus-agent gnus-srvr gnus-score score-mode nnvirtual nntp gnus-cache gnus-msg gnus-art mm-uu mml2015 mm-view mml-smime smime dig gnus-sum nndraft nnmh gnus-group gnus-undo gnus-start gnus-cloud nnimap utf7 netrc nnoo parse-time gnus-spec gnus-win nnmail gnus-int gnus-range mail-source message format-spec rfc822 mml mml-sec epa epg mailabbrev gmm-utils mailheader gnus nnheader gnus-util rmail rmail-loaddefs mail-utils whitespace movie mkv shr svg imdb dom pvr debug debbugs-gnu easy-mmode derived debbugs soap-client mm-decode mm-bodies mm-encode url-http tls gnutls url-auth mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr url-gw nsm puny url url-proxy url-privacy url-expand url-methods url-history url-cookie url-domsuf url-util mailcap warnings rng-xsd rng-dt rng-util xsd-regexp xml ido flyspell ispell benchmark w3m browse-url doc-view subr-x dired dired-loaddefs image-mode timezone w3m-hist w3m-fb w3m-ems wid-edit w3m-ccl ccl w3m-favicon w3m-image w3m-proc w3m-util add-log mail-extr jka-compr cl finder-inf package epg-config url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars seq byte-opt gv bytecomp byte-compile cl-extra help-mode easymenu cconv cl-loaddefs pcase cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 1045166 126768) (symbols 48 170836 0) (miscs 40 288 729) (strings 32 245855 17893) (string-bytes 1 14892431) (vectors 16 36358) (vector-slots 8 1122185 66612) (floats 8 6931 746) (intervals 56 60845 5795) (buffers 976 61) (heap 1024 184172 181041)) -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no