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: MPS codegen Date: Fri, 14 Jun 2024 09:30:31 +0200 Message-ID: References: <87le3b43qi.fsf@gmail.com> <86r0d21tqj.fsf@gnu.org> <877cetgqiz.fsf_-_@gmail.com> <87wmmsg2e4.fsf@gmail.com> <87plskg035.fsf@gmail.com> <87ed90fyd3.fsf@gmail.com> <86zfroxc6l.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5289"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: eller.helmut@gmail.com, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 14 09:31:29 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 1sI1PE-0001Bo-MF for ged-emacs-devel@m.gmane-mx.org; Fri, 14 Jun 2024 09:31:28 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sI1Ob-0007tP-RZ; Fri, 14 Jun 2024 03:30:49 -0400 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 1sI1OQ-0007WY-AY for emacs-devel@gnu.org; Fri, 14 Jun 2024 03:30:43 -0400 Original-Received: from mail-lf1-x131.google.com ([2a00:1450:4864:20::131]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sI1OO-0001PV-Ae; Fri, 14 Jun 2024 03:30:38 -0400 Original-Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-52c9034860dso2316127e87.2; Fri, 14 Jun 2024 00:30:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718350233; x=1718955033; darn=gnu.org; h=content-transfer-encoding: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=3HISLfHYR5QcMnvOSfPZSbPcNmrsEGnzwoE+Ma3fBUw=; b=cWZww+jnAygg4w7seW0dGq+0TjkJZ9CCAsakq97AdP94F5mLHLpJoFUIeXpOFPQYwu cKaCXH88FbYP/MFEmXOfy+Pzq7bnoG4xy3GidO/WkxSEGfWGvv3PegtIXiB8xnmFuj0+ EXoaCLn3YjM5Qucp3YG3wZh63bnex2zwS/3+rM1tWStaYcU6OPvNfW1/ItZ4G17hMcLj +MkVPu41wgahfftTugYjajuqYNuCYvEpr4cdO7DTVCJvOB1CsE6pykwlpJ2ec/bDjavC jXnynfbs95S0lt/LrQXeAZ7P6RI7zd3WNumEwb8j2FovpaVoFHNktZ6gQOiTecrqzsk5 hMGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718350233; x=1718955033; h=content-transfer-encoding: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=3HISLfHYR5QcMnvOSfPZSbPcNmrsEGnzwoE+Ma3fBUw=; b=qRRp3uZGTL86W6pAlSZLsb+3kNxPAPRTTo0xaAhUkPEkZutkzDz7Pguqs7h3x9lO6f y3IG2U5/ms46J04ldCfQ1vdNnPyhzpI00SCDv9n4VUY62Fyv6+BWCsPvLDAp/JhT+mxN XS4YkgjQCpSmyXBobcj8k7tLJZgS4b3bB55IwfIPHhCtUPVJ/jN6Iqk1jpWfWwz33WuV Snw0e5lqEKGezVknUeraq/4Iv9krM6Hi9F1zKhCSQ/OBO/vVFq+pwqqNoJZgZzVCjxHy hnCfQN31nVcLTNn+FB/tBPEGP8heNEypxPjJrFrJ9y0YzFYZj6ri2uOhlhohQU+rF2x3 dZjA== X-Forwarded-Encrypted: i=1; AJvYcCXNpHEWV+nVkSJ7K+HZoFx31Tk5w3rlCmUK1PI386F7iUcwF5GOMH5X49ek7Wd3hoOM2TBOKS2qdGlzPcARmqyrJenz X-Gm-Message-State: AOJu0YwbsYqiqG8Q410/YiVVkRewq3Y2qGu02frlqjNmcWSVVfeD9BbB puJB2AqcTQqDHsEpRQ4RGT240srWsR48YPZi3Jdf4qmUTmMx8bNusrjTcw== X-Google-Smtp-Source: AGHT+IHx30iWWmqxyM9uWUyAIATRhorPvmvB9d1z+4JLFTa3lBwnlmyvlqNO3uSm4vxWU78MufycRA== X-Received: by 2002:ac2:4db5:0:b0:52c:8596:5978 with SMTP id 2adb3069b0e04-52ca6e9263fmr1362605e87.43.1718350232707; Fri, 14 Jun 2024 00:30:32 -0700 (PDT) Original-Received: from pro2.fritz.box (pd9e367ea.dip0.t-ipconnect.de. [217.227.103.234]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56db620csm155146966b.71.2024.06.14.00.30.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 00:30:32 -0700 (PDT) In-Reply-To: <86zfroxc6l.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 14 Jun 2024 09:37:06 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::131; envelope-from=gerd.moellmann@gmail.com; helo=mail-lf1-x131.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, T_SCC_BODY_TEXT_LINE=-0.01 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:320051 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Cc: Eli Zaretskii , emacs-devel@gnu.org >> Date: Thu, 13 Jun 2024 21:37:41 +0200 >>=20 >> Maybe one could reserve + commit a suitable block upfront, maybe as one >> big IGC_OBJ_PAD, and use read(2) or so to read the .pdmp into that >> block. > > Wouldn't that slow down startup? pdumper uses memory-mapped files to > make that as fast as possible, and for a good reason: at the time > pdumper was introduced people objected to have startup slow down even > by a few hundreds of milliseconds. I don't know. Did pdumper do many reads that were replaced with one mmap? This one could do one large read instead of one mmap.