From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Preview: portable dumper Date: Tue, 29 Nov 2016 08:06:56 -0500 Message-ID: References: <047a67ec-9e29-7e4e-0fb0-24c3e59b5886@dancol.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1480453078 29498 195.159.176.226 (29 Nov 2016 20:57:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 29 Nov 2016 20:57:58 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Cc: emacs-devel@gnu.org To: Daniel Colascione Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 29 21:57:55 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cBpTM-0006vr-NB for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2016 21:57:52 +0100 Original-Received: from localhost ([::1]:39254 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBpTQ-0007RA-IY for ged-emacs-devel@m.gmane.org; Tue, 29 Nov 2016 15:57:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44761) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBpTI-0007Qu-7o for emacs-devel@gnu.org; Tue, 29 Nov 2016 15:57:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBpTF-0001xB-5U for emacs-devel@gnu.org; Tue, 29 Nov 2016 15:57:48 -0500 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:26590) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cBpTE-0001wl-V4 for emacs-devel@gnu.org; Tue, 29 Nov 2016 15:57:45 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0CnBgALW9BX/9qixEVdHAEBBAEBQoJrAQEBAQEehE2FULF5hhYEAgKBaT0QAQIBAQEBAQEBXieEYgEBAwFWIwULCw4mEhQYDSSIVQi8VQEBAQcCJYp9ihwFhhOJCoo8jB+MboYLjw2BPjUfgmgbgWsehgoBAQE X-IPAS-Result: A0CnBgALW9BX/9qixEVdHAEBBAEBQoJrAQEBAQEehE2FULF5hhYEAgKBaT0QAQIBAQEBAQEBXieEYgEBAwFWIwULCw4mEhQYDSSIVQi8VQEBAQcCJYp9ihwFhhOJCoo8jB+MboYLjw2BPjUfgmgbgWsehgoBAQE X-IronPort-AV: E=Sophos;i="5.30,296,1470715200"; d="scan'208";a="281000060" Original-Received: from 69-196-162-218.dsl.teksavvy.com (HELO pastel.home) ([69.196.162.218]) by smtp.teksavvy.com with ESMTP; 29 Nov 2016 15:57:41 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id 5083364F3A; Tue, 29 Nov 2016 08:06:56 -0500 (EST) In-Reply-To: (Daniel Colascione's message of "Mon, 28 Nov 2016 15:17:38 -0800") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:209768 Archived-At: > run. With a non-PIC executable, you can do a pretty good job of that > and get performance a bit better than unexec, in theory. Got me curious: how/why could it be even better than unexec? > Right --- I've tested on 64-bit only. I imagine testing 32-bit and > wide-int might reveal some latent bugs. I'm not worried about that. >>> functions pdumper.h --- but even so, it's within 100ms or so of an >>> unexeced Emacs. >> 0.1s will still lead to a noticeable slow down of bootstrap, but at >> least it should be good enough for the usual end-user who doesn't run >> Emacs in batch mode. > Oh, of course. But that's without any attention paid to > optimization. I'm sure it can go much faster. Sure, but it's already fast enough to be usable. [ Contrary to my dumped.elc, which is currently usable only for non-short-lived interactive sessions where you're willing to spend an extra second of startup. ] > Yeah --- then both approaches get into the problem of how to dump > arbitrary object graphs, which in practice ends up being "dump the whole > heap except for processes, windows, and frames." But the dumped.elc approach has it much more difficult here because it has to work within the scope of a predefined existing format. Stefan