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: Question about bignum usage Date: Thu, 20 Jun 2024 10:35:14 +0200 Message-ID: References: <86frt8nn8b.fsf@gnu.org> <86ed8snk0p.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="8663"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 20 10:36:11 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 1sKDH9-0001x0-3A for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Jun 2024 10:36:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKDGL-0004ht-Rz; Thu, 20 Jun 2024 04:35:21 -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 1sKDGJ-0004hQ-LU for emacs-devel@gnu.org; Thu, 20 Jun 2024 04:35:19 -0400 Original-Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sKDGI-00067U-3n; Thu, 20 Jun 2024 04:35:19 -0400 Original-Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a6efe62f583so53913266b.3; Thu, 20 Jun 2024 01:35:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718872516; x=1719477316; 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=WTCJYAPeOWMKVmvupjsKtLnTSXz9TbIAB+ratH9N1aw=; b=YeeE/jVqOhiAwbuGLFrbP1G9xwCeIdkbS7XF1dqDTKEgoJZKCPwZN/LdFzSuyPQSPJ 1jYyUbnjeHA5i2fGuQ5fyAvtfnJYt/aaMaCS83uVbrlULRs80hPtnZQllZ41magYgowZ N3I5TXpJZ90okwgK3sdX+cqxnsxfl+/IduiZx8yNQZJdls5K+roFbozws7pJUfYdvc1j ggrzkkZmim/soU62dy/NLjjaYpCH1uge/3oki5AVHeVGaHKxdibYPv2Ohpv5i5Fj67Qc pO1fIEGJ8lBeG/Yit80rdh2Y7aOrsMTh06tPPciX08vsXGknm5r/VJQAv2nCW3hAu0d7 6TGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718872516; x=1719477316; 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=WTCJYAPeOWMKVmvupjsKtLnTSXz9TbIAB+ratH9N1aw=; b=PD+UYkswE3o4qQXVPirBUTgcTs5w6dQeY+L/RIykkHT/NZ4aG3IR5JoXWJQ9huwWGb 05v3CS62P7P0n6Fd6l9NkFC2XF7+GlkocER/9E5Or6LS9bWApZrkATYmU057mCBk8CKs DRPnar5jALZM/Kg9qz/K77BvxOQSEHeKsfeivRBJFedA0+HW0oeY/DiDHw+IudvA33lf MB7jj5mftTwk50j9AnNcX5ASdvAtnF1B9VmV1XVJAuTjeTD55+f/4P2Xr0+McQbBjjLE JEAKjB1JjHar1dkj9t/u2zX/h8v++6Fj6KDYyFYxUDJvTcEYhE0vQpoCuEd5t9q3WdFq 4vig== X-Gm-Message-State: AOJu0YxskTFWc/XHY/aisYfbURqIbmbUfdgQYbqJ9PQI/zUptmQ3Gfv4 d3kQY9y5TGhNX4vYMwhLJrx+Tm9iiUQ5+LrITeBz82uoqiJoOogw2pTbKA== X-Google-Smtp-Source: AGHT+IG0FCovGmObieFdxg8qjVuICvWVgbhCn/NWJLGb8Bx4sNEeKa1n2fzPINrdHoweWBqwggF8SA== X-Received: by 2002:a17:906:c40e:b0:a6f:6960:5e16 with SMTP id a640c23a62f3a-a6fab617bc2mr281226166b.27.1718872515749; Thu, 20 Jun 2024 01:35:15 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a551.dip0.t-ipconnect.de. [79.227.165.81]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a6f56ed359bsm747557366b.137.2024.06.20.01.35.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jun 2024 01:35:15 -0700 (PDT) In-Reply-To: <86ed8snk0p.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 20 Jun 2024 10:36:06 +0300") Received-SPF: pass client-ip=2a00:1450:4864:20::62e; envelope-from=gerd.moellmann@gmail.com; helo=mail-ej1-x62e.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:320315 Archived-At: Eli Zaretskii writes: >> From: Gerd M=C3=B6llmann >> Cc: emacs-devel@gnu.org >> Date: Thu, 20 Jun 2024 08:34:22 +0200 >>=20 >> Eli Zaretskii writes: >>=20 >> > Why not? Time values are known to produce bignums, yes.=20=20 >>=20 >> Ok. >>=20 >> > What does list-timers show on that system? >>=20 >> 1.0s 5.0s auto-revert-buffers >> 5.4s - undo-auto--boundary-timer >> 4m 19.0s 5m persistent-scratch-save >> * 0.1s t show-paren-function >> * 0.5s t posframe-hidehandler-daemon-function >> * 0.5s t #f(compiled-function () # [jit-lock--antiblink-grace-timer jit-lock-context-fontify]) >> * 0.5s :repeat blink-cursor-start >> * 1.0s t which-key--update > > This means we check for expired times every 100 msec, so yes, we will > create a lot of bignums. I see something similar here as well. Thanks. It isn't a problem, one just have to know why it happens. In igc, these bignums accumulate pretty quickly to figures like PVEC_BIGNUM 97199 3110368 and much higher, where the first number is the number of bignums, and the second is bytes. The number of fonts is also curious. PVEC_FONT 90422 10868392 But all seem to be GC'd eventually.