From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ken Raeburn Newsgroups: gmane.emacs.devel Subject: Re: Skipping unexec via a big .elc file Date: Wed, 2 Nov 2016 03:36:12 -0400 Message-ID: <15CF14CC-C7DE-44BA-AC7D-F0BF1F160979@raeburn.org> References: <8760p2wzgj.fsf@users.sourceforge.net> <838ttyhhzu.fsf@gnu.org> <871szqwu51.fsf@users.sourceforge.net> <831szqhbc2.fsf@gnu.org> <87d1itt79z.fsf_-_@users.sourceforge.net> <7baa18d4-2b09-caa8-005e-29008a383ad1@cs.ucla.edu> <83mvhwrgd5.fsf@gnu.org> <8539f38f-9a11-44c3-4de7-bb974c96206c@cs.ucla.edu> <8360ojpndr.fsf@gnu.org> <83shrnm0k1.fsf@gnu.org> <075B0922-F07A-4FBA-AE71-027E964A5ED4@raeburn.org> <54AAC13A-CF56-4393-A932-DC6CBBF51259@raeburn.org> <3CC6BB36-1794-4202-8243-132E0345B236@raeburn.org> <52BDCC33-546C-4F47-A230-00EBC813B038@raeburn.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1478072247 4948 195.159.176.226 (2 Nov 2016 07:37:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 2 Nov 2016 07:37:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 02 08:37:24 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 1c1q6M-00051M-1T for ged-emacs-devel@m.gmane.org; Wed, 02 Nov 2016 08:36:50 +0100 Original-Received: from localhost ([::1]:53144 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1q6O-0008NB-C2 for ged-emacs-devel@m.gmane.org; Wed, 02 Nov 2016 03:36:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44245) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1q5s-0008Mt-5w for emacs-devel@gnu.org; Wed, 02 Nov 2016 03:36:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1q5p-0003Y8-36 for emacs-devel@gnu.org; Wed, 02 Nov 2016 03:36:20 -0400 Original-Received: from mail-qk0-x229.google.com ([2607:f8b0:400d:c09::229]:36549) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c1q5o-0003XG-Rj for emacs-devel@gnu.org; Wed, 02 Nov 2016 03:36:17 -0400 Original-Received: by mail-qk0-x229.google.com with SMTP id o68so8363794qkf.3 for ; Wed, 02 Nov 2016 00:36:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raeburn-org.20150623.gappssmtp.com; s=20150623; h=subject:mime-version:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=TG8RKjlIFHy0g1L8i6U2E3nWcXimdl0b7S2WclLstd4=; b=esIiTsn/pLVOSyT1q06/KSyMP9KdIYVN84fNr0GvSECW/EPwNHJ9uKulTt27P5Yt0e ub2YcpjcxprVt9iTu89ejohpSBNu8F34l8zNaW6G5dimWShN8VUj726xx7czgaDPOO9m Vsuq7HzZfbL5MpswY89EKJomTu9kQPJpVuBOPU3TDKjRqhkpTXxNk64XI9+96Ygwbl+M V/Wt1CuqE8GEdes4igwtb4QlLyebeHFfdxv9Lx+sx0KwGIDkNSTgzl7Bglis7zlhx6Lj lJniMzXY9uJw0NtTMMmsnV0bhdueBkTTbLQBQr7pBdp/Pn3Xe9nihN7xXm18H3+sCPq6 sdkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:mime-version:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=TG8RKjlIFHy0g1L8i6U2E3nWcXimdl0b7S2WclLstd4=; b=f0hHRNpRcxRzspMVivKOIecvS93ucXGY3hbWzMgbtsG5RsMHWYRaioLgzIi0uSEPTL KdFZQ0XAQFJk4jgoHNNZFTYutry7hBcpPbz45oV6bHYzEDABP6XWYoMOmufH3i9CTv2s gEPOnaiuvGG8/qNkm9TRIJKdJ3vDlAyrC1Z4JImhvVCcyrtgHZoV/eO/TyDTdKlgyPOi UaaFcXqMv4BoO1OJM2On9E+SjIbgvnG2AOqbtGBBwq7j7sM4rNAhkYuXeiNUE5YxpHZx jsRx49MyBmnc16G9xw9S61x5Xfrm7/4zBC2+crdB0ECTjKP+6Vtzp9HZ0Dixxu6Fi75r NCyg== X-Gm-Message-State: ABUngveDcV5++MMlVT2NMI2dBnRq4nzmJcXSpdGlUmT9hGrXub11w+GDt2GtBHJqe/JuTw== X-Received: by 10.55.6.13 with SMTP id 13mr1775624qkg.272.1478072174990; Wed, 02 Nov 2016 00:36:14 -0700 (PDT) Original-Received: from [192.168.23.52] (c-50-138-183-136.hsd1.ma.comcast.net. [50.138.183.136]) by smtp.gmail.com with ESMTPSA id 124sm443121qki.14.2016.11.02.00.36.13 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Nov 2016 00:36:13 -0700 (PDT) In-Reply-To: X-Mailer: Apple Mail (2.3124) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::229 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:209102 Archived-At: On Oct 31, 2016, at 10:27, Stefan Monnier = wrote: >> I switched over to a pair of hash tables and the run time is just = under 0.2s >> on my test machine now. Profiling reports are now topped by read1, >> readchar, and readbyte_from_file (now including the expanded = getc_unlocked >> calls), accounting for about 30% of the CPU time between them. The = hash >> functions and substitute_object_recurse are not taking a significant = amount >> of time. >=20 > BTW, I don't know if you've tried to make that dumped file work > correctly, but in case you haven't here's my latest attempt. Thanks! Looks like you=E2=80=99ve refined the handling of faces and = other attributes. Have you tried it out in batch mode? I=E2=80=99m = getting a crash in realize_face with a null cache pointer. Ken=