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 20:32:00 +0200 Message-ID: References: <86frt8nn8b.fsf@gnu.org> <86ed8snk0p.fsf@gnu.org> <87sex74tlz.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="25506"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Helmut Eller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jun 20 20:33:01 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 1sKMaj-0006Qo-Dc for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Jun 2024 20:33:01 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sKMaB-0007Sz-I0; Thu, 20 Jun 2024 14:32:27 -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 1sKMZs-0007P6-Bd for emacs-devel@gnu.org; Thu, 20 Jun 2024 14:32:08 -0400 Original-Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sKMZp-0003FZ-A5; Thu, 20 Jun 2024 14:32:07 -0400 Original-Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-57d251b5fccso829368a12.0; Thu, 20 Jun 2024 11:32:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1718908322; x=1719513122; 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=mWssDbVovZs01Y2VIL5H/ocdkevM6zXXd+DlmY5WuK0=; b=BmgKcU4Um2IrxGrhCwutRVYVby86Bt89/35mPyGXS5ZhL0tdOSQM5RngSr2RoYqRK5 MpZvgv3Kj91PoS7qrUfjCNv3GJaR82kUk7lOVt5GnDZY7g1b4TNWQgWrudnkcLMLvSd7 5O+oHFh+TFLbgjq6zcNuwzf8GWWonQbyZ4p063NNm8DXR/Oz7NJ59lGd3kWBWHjrIoe3 UDFz4tuZqZyyqp8dOoZW2eZpYwQt6c68g2vMDHZod1bc0TljD/qEaRLXnQpkCjmxlHdR iEdz8i7vdbQ/iuUD8NEXnNTZtVUYiIYfLSQDRwVvxd3G0RhtY2Z8NgcpKaDB2lsrxssT Qm4Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718908322; x=1719513122; 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=mWssDbVovZs01Y2VIL5H/ocdkevM6zXXd+DlmY5WuK0=; b=vdtlwpDgjLkQTszru58V0h8xjF9uDaxGB0Pv/18yz0+Civ8wr0y7shisMZC2LGDdqo 5FOxXTld4c7fqN/aKDLtfoQAYADSDF9H+mKX2GHw+oJRbAebkL8pfEaIeAYJ9SaVx3Rw +dP5d1AZ62QbT/BHR7bj514CufdeFb3GUvj1wjQi0x+B9YDQCYmJJMos/UTtCok9sNBE NT5fm+kXdDegxw4DuhUcvvpJzxIQ7KSm2f/AF7ukQW1kkRAawgvpfb9tHSf8NSbjIeHu QbFvUfloOkL65bxpgKC+bx2xf33M2DEbGasKn2D+1D8bJeR9Z1zNVOIqCkPLiaLUdgSy jtGw== X-Forwarded-Encrypted: i=1; AJvYcCUuV+dT4QNxfqo1L20w4sQew9LGUwqC6wMGGMELIe9no5UaptuZtmRc8IlaFEqYv69RNB/yIopb363OmRjaVWhSXn8A X-Gm-Message-State: AOJu0YyU8uy6YXPooiRvSslbLOeFfUr9ku7sIRhPqzC9656zRQW7+lhW A2VGeXnJ4O693KY9izzzTk2fWet3gC7u2xXjcd5TkqnzEWvfspOFQm8F+w== X-Google-Smtp-Source: AGHT+IFK0OzL01XW4rD1Tw6urteRYSba8IzARjDkfW5c6qqNQsGABGEAQcgP2tP01bvBIEErG6SMcQ== X-Received: by 2002:a50:9ec2:0:b0:57c:75a1:2a14 with SMTP id 4fb4d7f45d1cf-57d07e5aacdmr4214976a12.12.1718908322010; Thu, 20 Jun 2024 11:32:02 -0700 (PDT) Original-Received: from pro2.fritz.box (p4fe3a551.dip0.t-ipconnect.de. [79.227.165.81]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-57cb72ce2b3sm9937779a12.14.2024.06.20.11.32.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Jun 2024 11:32:01 -0700 (PDT) In-Reply-To: ("Gerd =?utf-8?Q?M=C3=B6llman?= =?utf-8?Q?n=22's?= message of "Thu, 20 Jun 2024 16:17:33 +0200") Received-SPF: pass client-ip=2a00:1450:4864:20::533; envelope-from=gerd.moellmann@gmail.com; helo=mail-ed1-x533.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:320333 Archived-At: Gerd M=C3=B6llmann writes: > Helmut Eller writes: > >> On Thu, Jun 20 2024, Gerd M=C3=B6llmann wrote: >> >>> Gerd M=C3=B6llmann writes: >>> >>>> the second is bytes. The number of fonts is also curious. >>>> >>>> PVEC_FONT 90422 10868392 >>>> >>>> But all seem to be GC'd eventually. >>> >>> FWIW, I'm attaching the Lisp that I currently use to display this stuff. >>> Something hacked together. M-x igc-stats displays a buffer in which one >>> can take two snapshots of igc-info, display them, sompare them, trigger >>> GC and so on. >> >> Thanks! That's quite nice. >> >>> The PVEC_FONT stuff is impressive :-)=20 >> >> There don't seem to be so many PVEC_FONT objects here. After >> startup (with my normal .emacs): >> >> PVEC_FONT 1251 151824 >> >> and then after opening igc.c and moving around a bit: >> >> PVEC_FONT 1968 238312 > > That's interesting! I'm also using my normal init.el, so I'm just using > the igc branch in the way I use Emacs day by day. It's apparently not a > problem, but I wonder what's going on...=20 Seems to have something to do with a header line. * frame #0: 0x0000000100177d28 emacs`copy_font_spec [inlined] TAGGEDP(a= =3D(struct font *) $1 =3D 0x000000010d749bb8, tag=3DLisp_Vectorlike) at lis= p.h:781:10 [opt] frame #1: 0x0000000100177d28 emacs`copy_font_spec [inlined] PSEUDOVECTO= RP(a=3D(struct font *) $2 =3D 0x000000010d749bb8, code=3D36) at lisp.h:1105= :11 [opt] frame #2: 0x0000000100177d28 emacs`copy_font_spec [inlined] FONTP(x=3D(= struct font *) $3 =3D 0x000000010d749bb8) at font.h:437:10 [opt] frame #3: 0x0000000100177d28 emacs`copy_font_spec [inlined] CHECK_FONT(= x=3D(struct font *) $4 =3D 0x000000010d749bb8) at font.h:487:15 [opt] frame #4: 0x0000000100177d28 emacs`copy_font_spec(font=3D(struct font *= ) $5 =3D 0x000000010d749bb8) at font.c:4105:3 [opt] !gud 4105:3:/Users/gerd/emacs/github/igc/src/font.c frame #5: 0x0000000100179898 emacs`font_clear_prop(attrs=3D(struct Lisp= _Symbol *) $6 =3D 0x00000002706c9cf0, prop=3DFONT_WEIGHT_INDEX) at font.c:3= 088:12 [opt] frame #6: 0x00000001000c5c30 emacs`merge_face_vectors(w=3D= , f=3D, from=3D(struct Lisp_Symbol *) $7 =3D 0x00000002706c97b= 8, to=3D(struct Lisp_Symbol *) $8 =3D 0x00000002706c9cf0, named_merge_point= s=3D) at xfaces.c:0 [opt] frame #7: 0x00000001000ccbcc emacs`merge_named_face(w=3D0x0000000106e41= e28, f=3D0x0000000105c96c00, face_name=3D, to=3D(struct Lisp_S= ymbol *) $9 =3D 0x00000002706c9cf0, named_merge_points=3D, att= r_filter=3D) at xfaces.c:2420:9 [opt] frame #8: 0x00000001000c93ec emacs`merge_face_ref(w=3D, f= =3D0x0000000105c96c00, face_ref=3D(struct Lisp_Symbol *) $10 =3D 0x00000001= 008d7a60, to=3D(struct Lisp_Symbol *) $11 =3D 0x00000002706c9cf0, err_msgs= =3Dfalse, named_merge_points=3D0x000000016fdf6390, attr_filter=3D) at xfaces.c:2902:12 [opt] frame #9: 0x00000001000c5b70 emacs`merge_face_vectors(w=3D= , f=3D, from=3D(struct Lisp_Symbol *) $12 =3D 0x00000002706c9a= 88, to=3D(struct Lisp_Symbol *) $13 =3D 0x00000002706c9cf0, named_merge_poi= nts=3D) at xfaces.c:2252:5 [opt] frame #10: 0x00000001000ccbcc emacs`merge_named_face(w=3D0x0000000106e4= 1e28, f=3D0x0000000105c96c00, face_name=3D, to=3D(struct Lisp_= Symbol *) $14 =3D 0x00000002706c9cf0, named_merge_points=3D, a= ttr_filter=3D) at xfaces.c:2420:9 [opt] frame #11: 0x00000001000c93ec emacs`merge_face_ref(w=3D, f= =3D0x0000000105c96c00, face_ref=3D(struct Lisp_Symbol *) $15 =3D 0x00000001= 0adfa890, to=3D(struct Lisp_Symbol *) $16 =3D 0x00000002706c9cf0, err_msgs= =3Dtrue, named_merge_points=3D0x0000000000000000, attr_filter=3D) at xfaces.c:2902:12 [opt] frame #12: 0x00000001000cc564 emacs`face_at_string_position(w=3D0x00000= 00106e41e28, string=3D(struct Lisp_String *) $17 =3D 0x000000010adfd4a0, po= s=3D1, bufpos=3D0, endptr=3D, base_face_id=3D, mo= use_p=3D, attr_filter=3D) at xfaces.c:70= 44:5 [opt] frame #13: 0x00000001000376d4 emacs`display_string(string=3D"*igc*", li= sp_string=3D(struct Lisp_String *) $18 =3D 0x0000000106e3cf20, face_string= =3D(struct Lisp_String *) $19 =3D 0x000000010adfd4a0, face_string_pos=3D1, = start=3D, it=3D0x000000016fdf7e70, field_width=3D= , precision=3D, max_x=3D0, multibyte=3D0) at xdisp.c:29122:4 [= opt] frame #14: 0x0000000100030a38 emacs`display_mode_element(it=3D0x0000000= 16fdf7e70, depth=3D, field_width=3D0, precision=3D-10, elt=3D(= struct Lisp_String *) $20 =3D 0x000000010adfd4a0, props=3D(struct Lisp_Symb= ol *) $21 =3D 0x00000001008d36e0, risky=3D) at xdisp.c:27793:1= 7 [opt] frame #15: 0x000000010002f4b8 emacs`display_mode_element(it=3D0x0000000= 16fdf7e70, depth=3D, field_width=3D0, precision=3D-10, elt=3D<= unavailable>, props=3D(struct Lisp_Symbol *) $22 =3D 0x00000001008d36e0, ri= sky=3D) at xdisp.c:27970:13 [opt] frame #16: 0x000000010002f4b8 emacs`display_mode_element(it=3D0x0000000= 16fdf7e70, depth=3D, field_width=3D0, precision=3D0, elt=3D, props=3D(struct Lisp_Symbol *) $23 =3D 0x00000001008d36e0, risk= y=3D) at xdisp.c:27970:13 [opt] frame #17: 0x000000010001dad4 emacs`display_mode_line(w=3D0x0000000106e= 41e28, face_id=3DMODE_LINE_ACTIVE_FACE_ID, format=3D(struct Lisp_Cons *) $2= 4 =3D 0x000000010a267750) at xdisp.c:27395:7 [opt] frame #18: 0x0000000100052740 emacs`display_mode_lines(w=3D0x0000000106= e41e28) at xdisp.c:27308:7 [opt] frame #19: 0x000000010005a5ac emacs`redisplay_window(window=3D(struct w= indow *) $25 =3D 0x0000000106e41e28, just_this_one_p=3Dfalse) at xdisp.c:20= 927:7 [opt] It's always copy_font_spec that is involved in this way. I can lean on 'g' in the *igc* buffer, and watch is grow by the hundreds :-)