From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Zhu Zihao Newsgroups: gmane.emacs.devel Subject: Re: On elisp running native Date: Tue, 10 Mar 2020 03:14:27 +0800 Message-ID: <87zhcp2ve4.wl-all_but_last@163.com> References: <87eeu5txxw.wl-all_but_last@163.com> <8736ah4dlm.wl-all_but_last@163.com> Mime-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="12887"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?ISO-8859-4?Q?Goj=F2?=) APEL/10.8 EasyPG/1.0.0 Emacs/27.0 (x86_64-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) Cc: Zhu Zihao , Stefan Monnier , emacs-devel@gnu.org To: Andrea Corallo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 09 20:30:51 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jBO71-0003IJ-3O for ged-emacs-devel@m.gmane-mx.org; Mon, 09 Mar 2020 20:30:51 +0100 Original-Received: from localhost ([::1]:48546 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBO70-0001sL-1r for ged-emacs-devel@m.gmane-mx.org; Mon, 09 Mar 2020 15:30:50 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51539) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jBO6K-0001O5-BV for emacs-devel@gnu.org; Mon, 09 Mar 2020 15:30:10 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jBO6G-00063v-QY for emacs-devel@gnu.org; Mon, 09 Mar 2020 15:30:05 -0400 Original-Received: from m12-12.163.com ([220.181.12.12]:43787) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jBO6F-0005zh-I8 for emacs-devel@gnu.org; Mon, 09 Mar 2020 15:30:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Date:Message-ID:From:Subject:MIME-Version; bh=15oaP x2XsUUPE/P6pWK6Y51HoBy26z9S4RaRJb4XUaw=; b=YY+s43WBEjQh/0l+imJpW 5PK9m6ncZPaS7sRGgMtOtmtjrlEw+/9aih8aqsdaZ0hmU8viIQQVU3h4Ft5vfYWt m+qprQmyS6ZU5+bCOp5AJUUbnTIr++Aa5dkSVgAP/0AI+9vNLRqpyE9/oHD+6tvP G1SyoP2ma9GKFfmxlJJQm8= Original-Received: from archlinux.163.com (unknown [14.121.132.186]) by smtp8 (Coremail) with SMTP id DMCowADXE+WTlWZes3quAw--.4340S2; Tue, 10 Mar 2020 03:14:33 +0800 (CST) In-Reply-To: X-Face: :]]%@R1{oDt0%iKgI@Kga#OZ; ogt+%OOne&J4#E*O,TIlI)yEFw--I\:3s~EV97GI$1.1!}8inmF9UgtUBB@#8>'8NWNC8qg/v*OLfQB; Z:@G3HeNf3u& ,&HpBGv%?p{bzsl'|5T";1&X X-CM-TRANSID: DMCowADXE+WTlWZes3quAw--.4340S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7Wr4kCr43tFWUuw4DArWxtFb_yoW3WFgEk3 4FyrWUu3s8GFn7JF9rAr48X3yIqrWUZ3Z5Zwn8Wr13Ka4rAFW5W395ur12vFy5Kw4FgFZx GayYqF4v934j9jkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUUrb17UUUUU== X-Originating-IP: [14.121.132.186] X-CM-SenderInfo: pdoosuxxwbztlvw6il2tof0z/xtbBaxrhr1etzb9icgAAsn X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 220.181.12.12 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:245404 Archived-At: Thanks for your quick reply, Andrea! I temporarily turn the comp-speed to 0 and less memories was required during the compilation. And the eln files are still faster than elc files. Amazing works! IMO, leim files may not need to be native-compiled. If you check those files, you will found that they just some macros and tons of alists that map input codes to characters. So they just need to be byte-compiled(to do the macro-expansion). Another question is, polymorphic functions defined by `cl-defmethod` can't be native compiled. `cl-defmethod` generates and byte-compile dynamic lambda to support runtime multi-dispatch. I' m wondering is that any way to make `cl-defmethod` compatible with native-comp, maybe Stefan Monnier have more ideas on this.