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: Loaded pdump Date: Fri, 10 May 2024 09:59:55 +0200 Message-ID: References: <87bk5fp0km.fsf@gmail.com> <87seyrni6f.fsf@gmail.com> 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="12616"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , Emacs Devel To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri May 10 10:00:40 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 1s5LBH-00039z-Ce for ged-emacs-devel@m.gmane-mx.org; Fri, 10 May 2024 10:00:39 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1s5LAm-0004jx-Ag; Fri, 10 May 2024 04:00:10 -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 1s5LAf-0004jB-DH for emacs-devel@gnu.org; Fri, 10 May 2024 04:00:01 -0400 Original-Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1s5LAd-0006AW-GH; Fri, 10 May 2024 04:00:00 -0400 Original-Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-34d7d04808bso1207915f8f.0; Fri, 10 May 2024 00:59:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715327997; x=1715932797; 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=fa+fD4VsqnHcipGSOGhz1g6CVk+Vi8NAd5d917N/pBI=; b=ghsnRJPqgLslR9eNNY9DXVh91NNtWB4IW1TMqCHJr+R7h8ccAK0kY/us1oQ5cEXhIW Q5TDp9arrk1IUwEhV2L5VO5XKgfmJFv3/pEesLucQKqRT2kPdVkJ7irf9hbdCuORdYZd se4JUH9uLgvLJ0EEyElm8O8zm4qIDL7CYHUMeS1SbiZwZ27eqQl4rqfPs8FjamKC4VTt m4HnFSoCzeWqstQpsndgQoyVeZNNDK9lLHJdywXUXzKbo4hKgv3D9fnnlZpTWpv8UchW WEcrcwJFsO60aZTII/42HvbZqNHT4fwQDIZSTTKF5GCVq7iLt+gFZSJWt8P8WaxiwzYe uVww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715327997; x=1715932797; 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=fa+fD4VsqnHcipGSOGhz1g6CVk+Vi8NAd5d917N/pBI=; b=FJq2x2xNAhp0+eaQrJEPtpiFq5gaTGAJwzJ22Kp9KQ7xO5ieMOvCDsrYzBha5TNwfa Q5bOD2m9Y3+I/Zh28EFcI+29cGW1/a+irF/vMPs4MLuubv9xWCFn7ww9Av4ztH0jX2zc SZAvg8Gh5Jz3NTdapsSV6jMrn29Ups3BKZR9/9ePHUaYJDDpa8/dOAEzAxOlnyj1D295 vna3ZOtq3C77i3Gn6sKnSr/orx61tXqbih1hXgla7UUsgso687JTCbEz6k4zOvFsr5GY pba3mkCQzf1IGwcrRmcaWanYeeJb63CsJBdLXzrBAgbiZYfKJyxMJVGbiRjNC5u+7iEt KM1w== X-Forwarded-Encrypted: i=1; AJvYcCVG7kPfF0DR2W0v6Lp1c4mZdI6iHGBdTBdwMuXDG+lKO3X/js2uQ6cWBEviaGcdoOOMrFj9LkRRwWD09+s3TKxstVw9 X-Gm-Message-State: AOJu0Yx5e5Om09nIwIBN+SnxxkClOPR6noZ10JUFw/G05d8bPsztUbzs yNP156stsmk2ujEwToB6ep4MhhKtHU/nzs/3CdK5/mqlww9AELc2JMS/5A== X-Google-Smtp-Source: AGHT+IEwH3CIoHRmcMZlhxoOZAeNsITnhrt3m4Dsj64FzS5HOcRtO8GktPOZAlfWWtMFGkwVxvZOhA== X-Received: by 2002:adf:e501:0:b0:34d:b79c:511 with SMTP id ffacd0b85a97d-3504a632b2cmr1935907f8f.20.1715327996923; Fri, 10 May 2024 00:59:56 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a7ef.dip0.t-ipconnect.de. [79.227.167.239]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502bbbbedbsm3797101f8f.92.2024.05.10.00.59.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 00:59:56 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Thu, 09 May 2024 17:07:49 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=gerd.moellmann@gmail.com; helo=mail-wr1-x42a.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:319117 Archived-At: Gerd M=C3=B6llmann writes: > I have now pushed a igc--alloc-vectors that we could use to meansure > something. Good question is with what to call it. > > DEFUN ("igc--alloc-vectors", Figc__alloc_vectors, Sigc__alloc_vectors, > 1, 1, 0, doc: /* Allocate vectors from MPS according to SPEC. > SPEC is a list of conses (N . SIZE). N is the number of vectors and > SIZE is the SIZE of the vectors to allocate. Allocations happen with > MPS arena in parked state. */) > > Sorry for breaking the build! Moin Helmut, could you please check if I'm doing something wrong? I do=20 (benchmark-run 1 (igc--alloc-vectors '((400000 . 4)))) =3D> (0.06476799999999999 0 0.0) in a debug build (-lmps-debug). That allocates 400K vectors of size 4, which is on my machine (* 400000 (+ 8 8 (* 4 8))) =3D ca. 19 Mb. It's in a parked arena, so GCs don't run, but anyway, that's a bit faster than I thought, so I'd like to ask you for confirmation.