From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Dumper problems and a possible solutions Date: Wed, 25 Jun 2014 14:38:49 -0400 Message-ID: References: <20140624171955.GS179@brightrain.aerifal.cx> <53AB0EF8.4090608@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1403721556 30415 80.91.229.3 (25 Jun 2014 18:39:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Jun 2014 18:39:16 +0000 (UTC) Cc: Rich Felker , emacs-devel@gnu.org To: Dmitry Antipov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 25 20:39:09 2014 Return-path: Envelope-to: ged-emacs-devel@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 1Wzs69-0007tr-HQ for ged-emacs-devel@m.gmane.org; Wed, 25 Jun 2014 20:39:09 +0200 Original-Received: from localhost ([::1]:40412 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzs69-00020x-6X for ged-emacs-devel@m.gmane.org; Wed, 25 Jun 2014 14:39:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52219) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzs5z-00020Z-1p for emacs-devel@gnu.org; Wed, 25 Jun 2014 14:39:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wzs5q-0005NC-H5 for emacs-devel@gnu.org; Wed, 25 Jun 2014 14:38:59 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:52131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wzs5q-0005N0-DR for emacs-devel@gnu.org; Wed, 25 Jun 2014 14:38:50 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCwsOJhIUGA0kLodWCNIZF456B4Q4BKkZgWqDTCE X-IPAS-Result: ArUGAIDvNVNLd+D9/2dsb2JhbABZgwaDSsA9gRcXdIIlAQEBAQIBViMFCwsOJhIUGA0kLodWCNIZF456B4Q4BKkZgWqDTCE X-IronPort-AV: E=Sophos;i="4.97,753,1389762000"; d="scan'208";a="69546695" Original-Received: from 75-119-224-253.dsl.teksavvy.com (HELO pastel.home) ([75.119.224.253]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 25 Jun 2014 14:38:49 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 4347E62CE5; Wed, 25 Jun 2014 14:38:49 -0400 (EDT) In-Reply-To: <53AB0EF8.4090608@yandex.ru> (Dmitry Antipov's message of "Wed, 25 Jun 2014 22:03:36 +0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) 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.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:172718 Archived-At: > What about non-Lisp objects? The core purpose of the dumper is to do a kind of "define functions and variables" that's faster than loading the corresponding .elc files. So all we really need is basically to dump the content of the obarray and reload it later on (if it's dumped into a C file, then it's like the reload happens at link time). So, the problem only appears if there are objects reachable from the obarray which come from external libraries. Stefan