From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Gerd_M=C3=B6llmann?= Newsgroups: gmane.emacs.devel Subject: Re: Merging scratch/no-purespace to remove unexec and purespace Date: Sat, 21 Dec 2024 19:32:32 +0100 Message-ID: References: <87zfku6ra9.fsf@gmail.com> <87seql7a3o.fsf@gmail.com> <87o71553yf.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4226"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Stefan Monnier , Stefan Kangas , emacs-devel@gnu.org, Pip Cet To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 21 19:33:08 2024 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 1tP4Hi-0000wK-Uu for ged-emacs-devel@m.gmane-mx.org; Sat, 21 Dec 2024 19:33:06 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tP4HH-0001y4-2V; Sat, 21 Dec 2024 13:32:39 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tP4HF-0001xp-Jx for emacs-devel@gnu.org; Sat, 21 Dec 2024 13:32:37 -0500 Original-Received: from mail-ed1-x52e.google.com ([2a00:1450:4864:20::52e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tP4HE-0002qf-66 for emacs-devel@gnu.org; Sat, 21 Dec 2024 13:32:37 -0500 Original-Received: by mail-ed1-x52e.google.com with SMTP id 4fb4d7f45d1cf-5d0f6fa6f8bso4645359a12.0 for ; Sat, 21 Dec 2024 10:32:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734805954; x=1735410754; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=LuRHDK9IQ1zCF+Byh6QfMrf7UFFx3h8Yw7kLUL8DQPs=; b=H7PhCnyW0qNx6ORq4lxilq6Qyx6lpAFHBwkDaq3CnIDE56MS9QmZH7Xq7BiZJy2Wm9 mET0x+kswWtL6O8Qoyp2zFVETx8Uapu2JJNypLaVXqyDoXbGCXtu557IIqk4Uig3I0E6 sBoB/hoy0BeHtAuuw/gCNg8BVJ5Y4bJeXWSVxKqJRgnedBH4B1IM22XWTCDux1OcTnZz rDCiJQ4iXwHJVv8c+WIxyB96VHFO8zcFwcfDthKtFQ9f8rY7S3gBrhyW2dQX8W0umqly QPT8cOKl9U96X10Gn+nCKZADVyyH48uXwSKpRe3/b4uW1L7yaAE6E27vXFLQr33Q2ll+ IPjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734805954; x=1735410754; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=LuRHDK9IQ1zCF+Byh6QfMrf7UFFx3h8Yw7kLUL8DQPs=; b=E9sN4MabtsTENSMlCnFIUlQQO5+837+wy3DQdgnbgiQuoD9DY16UfjoPpNW1ZmsLt9 cpIFpnmBSEWa34cKPaGzWwXGPiOqDGw+uBv3/eUNcZfDLkFGea6bTJmfbf2bYXJVSIEK LN6A/WjIKjKMckJMEOe/M83e7KOOJIVrB87ujnGZSxoasO4IiE8TzQ62xZiHzVSEo6jB ycqfMbS42MYuhUF4m7fAkZ9j+yiilJSJzfyiMK3Nm91/zCR9I+axXRVKSbUIzX4fRox+ VRtN7r9Y5bcEIqiJ8p7XWqP6r0xXvzXblr0uPxLB1n5V56wp3AyqGVqOYhPpO/fAmRR+ CpRw== X-Forwarded-Encrypted: i=1; AJvYcCWWYTpv/YhkAy4V+bS6EVcnJBJxuYpcWYqXyCz9iRIYozZYcRbhxRCwt48sxhh3V8L0v3fzzE+v4leVMg==@gnu.org X-Gm-Message-State: AOJu0Yyb+kF8HL/dGz8uSjnntcod9anIBx8Uh0F1dcV+vpyV8gKbQGUR ga7Lyk2a2hIbcv6I2booqSetB+yKAX3U0WvYxux90SiBE8AlyT7ISlJ8Ka1D X-Gm-Gg: ASbGncvZ5/t7vzTvI9KZJbVk8YO5WNIJK2PS3laHT+u1vGxw+zPub2oOjScI8A2ZnJC lsX5CxP4V9MpHYkDWYSiV9y4Yi/WOmDKKvjlQk3DDQ54GAvsU8udjzShksfhYeiU1ANrMX/jjtC H9b+mV0mJQYf0rEgzoVgCa9YsoXhjqL2JUwv3+fjBhFKB5nPPaKb3L/qIhu933f6IM5jPoJsM6F 2ruL4JF9ed/iwMGiBRcSrhejyjTObCrxVRgeEZSCd8jvbGA/fR5/bKUPmdsozZZWrNhA9EYv4JL MXeMST1K371wlwNxXUpOVepEgajxjUz1TaQG/A+hG7OuQ3W3pnc8agu35LgO4Hw3Fw== X-Google-Smtp-Source: AGHT+IG9SaRMq8BW67F1uyD/IVhx/HOz9LaHJrmkyGTNH2LgYHZQ1O1ogonX1kSD/NO9voszcr+vEg== X-Received: by 2002:a05:6402:1d49:b0:5d0:81f3:18bc with SMTP id 4fb4d7f45d1cf-5d81dd548bbmr5587730a12.1.1734805954199; Sat, 21 Dec 2024 10:32:34 -0800 (PST) Original-Received: from pro2 (p200300e0b7162300456cde412cc45ae9.dip0.t-ipconnect.de. [2003:e0:b716:2300:456c:de41:2cc4:5ae9]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d80675a488sm2967856a12.11.2024.12.21.10.32.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 21 Dec 2024 10:32:33 -0800 (PST) In-Reply-To: <87o71553yf.fsf@gmail.com> (Helmut Eller's message of "Sat, 21 Dec 2024 18:41:12 +0100") Received-SPF: pass client-ip=2a00:1450:4864:20::52e; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x52e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326829 Archived-At: Helmut Eller writes: > On Wed, Dec 18 2024, Helmut Eller wrote: > > [...] >> So the pdumper copies objects from purespace to the dump like normal >> objects; when loading the dump, purespace stays empty. >> >> I had (wrongly) assumed that the pdumper creates a separate section for >> pure objects. Creating such a section sounds easy enough (hmm, maybe >> not so easy because of hashtables). Still not sure if it would be worth >> the effort. > > Out of curiosity, I implemented such a section with the attached patch. > It seems that it would save ~2ms per collection cycle. > > To measure this, I compared the output of > > ./src/emacs -Q --batch --eval \ > '(let* ((stats (benchmark-run 1000 (garbage-collect)))) > (message "%s" (/ (elt stats 2) (elt stats 1))))' > > between the versions with and without the patch. The results was: > > without-pure-section: 0.006251480181 > with-pure-section: 0.003986384857 > > Helmut Interesting! And impressive, that's ca. 1/3 less.