From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#64735: 29.0.92; find invocations are ~15x slower because of ignores Date: Sat, 29 Jul 2023 09:15:09 +0300 Message-ID: <83pm4bi6qa.fsf@gnu.org> References: <1fd5e3ed-e1c3-5d6e-897f-1d5d55e379fa@gutov.dev> <87wmyupvlw.fsf@localhost> <5c4d9bea-3eb9-b262-138a-4ea0cb203436@gutov.dev> <87tttypp2e.fsf@localhost> <87r0p030w0.fsf@yahoo.com> <83sf9f6wm0.fsf@gnu.org> <83sf9eub9d.fsf@gnu.org> <2d844a34-857d-3d59-b897-73372baac480@gutov.dev> <83bkg2tsu6.fsf@gnu.org> <83bd4246-ac41-90ec-1df3-02d0bd59ca44@gutov.dev> <834jlttv1p.fsf@gnu.org> <937c3b8e-7742-91b7-c2cf-4cadd0782f0c@gutov.dev> <83a5vlsanw.fsf@gnu.org> <69a98e2a-5816-d36b-9d04-8609291333cd@gutov.dev> <87351cs8no.fsf@localhost> <35163e56-607d-9c5b-e3e8-5d5b548b3cb7@gutov.dev> <878rb3m43b.fsf@localhost> <83v8e6lyi4.fsf@gnu.org> <35f8b664-0241-9f96-1aa0-20ca51b2d34c@gutov.dev> <59c30342-a7e0-d83b-a128-0faae4cbd633@gutov.dev> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16404"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, sbaugh@janestreet.com, yantar92@posteo.net, 64735@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 29 08:46:10 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1qPdiM-00043O-Nd for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 29 Jul 2023 08:46:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qPdEG-00009C-IH; Sat, 29 Jul 2023 02:15:04 -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 1qPdEF-0008Vd-41 for bug-gnu-emacs@gnu.org; Sat, 29 Jul 2023 02:15:03 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qPdEE-0007YA-Qv for bug-gnu-emacs@gnu.org; Sat, 29 Jul 2023 02:15:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qPdEE-0007q1-Dl for bug-gnu-emacs@gnu.org; Sat, 29 Jul 2023 02:15:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 29 Jul 2023 06:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64735 X-GNU-PR-Package: emacs Original-Received: via spool by 64735-submit@debbugs.gnu.org id=B64735.169061127430080 (code B ref 64735); Sat, 29 Jul 2023 06:15:02 +0000 Original-Received: (at 64735) by debbugs.gnu.org; 29 Jul 2023 06:14:34 +0000 Original-Received: from localhost ([127.0.0.1]:46377 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPdDl-0007p5-Ob for submit@debbugs.gnu.org; Sat, 29 Jul 2023 02:14:34 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qPdDj-0007oq-Vj for 64735@debbugs.gnu.org; Sat, 29 Jul 2023 02:14:33 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPdDd-0007PE-2o; Sat, 29 Jul 2023 02:14:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=SKQqTmH/Rt0eZcq836DttsASeUiyw+hd9kw/kzzepCc=; b=lnDPcJx+vkIw 8evJXHSkO1q+WakRkdOut/NfjSUy86218Oe6ht9sV3kj/fDDfXT7juSWS6ouCSZwptNICQOR+nUiu wYSpB/pvw89mMhE2uF/NJL3vhrw3V98p+U4PU5Umyn0zeK/iXSI4lgOR/ByuygAdNrt60s76XjLGe bpBvot4DPRadVWx/V7j+imWO4GTfj5xq6AmnGtt14YOdHZ4au96WBHhZ2xPdoIZIuRZCjaZtV2hjl mi44EUNGAqo0NbiXHpEl6ByxOnNEkYBSndo2IZV6YGpHJXQaXiQZ0Pr4oU0ozC4MERtwmGLORDtfp vr6PFpidv/iH9N1OVocF7g==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qPdDS-0006vw-Qs; Sat, 29 Jul 2023 02:14:18 -0400 In-Reply-To: <59c30342-a7e0-d83b-a128-0faae4cbd633@gutov.dev> (message from Dmitry Gutov on Sat, 29 Jul 2023 03:12:34 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:266313 Archived-At: > Date: Sat, 29 Jul 2023 03:12:34 +0300 > From: Dmitry Gutov > Cc: luangruo@yahoo.com, sbaugh@janestreet.com, yantar92@posteo.net, > 64735@debbugs.gnu.org > > It seems like per-chunk overhead is non-trivial, and affects GC somehow > (but not in a way that just any string would). > > In this test, by default, the output produces ~6000 strings and passes > them to the filter function. Meaning, read_and_dispose_of_process_output > is called about 6000 times, producing the overhead of roughly 0.2s. > Something in there must be producing extra work for the GC. > > This line seems suspect: > > list3 (outstream, make_lisp_proc (p), text), > > Creates 3 conses and one Lisp object (tagged pointer). But maybe I'm > missing something bigger. I don't understand what puzzles you here. You need to make your descriptions more clear to allow others to follow your logic. You use terms you never explain: "junk objects", "number of strings in the heap", "per-chunk overhead" (what is "chunk"?), which is a no-no when explaining complex technical stuff to others. If I read what you wrote superficially, without delving into the details (which I can't understand), you are saying that the overall amount of consing is roughly the same. This is consistent with the fact that the GC times change only very little. So I don't think I see, on this level, what puzzles you in this picture.