From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#63861: [PATCH] pp.el: New "pretty printing" code Date: Thu, 08 Jun 2023 20:07:26 -0400 Message-ID: References: <87edmnics1.fsf@posteo.net> <87bkhpvm35.fsf@posteo.net> Reply-To: Stefan Monnier Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31623"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: 63861@debbugs.gnu.org To: Thierry Volpiatto Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 09 02:08:33 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 1q7Pg8-00083n-N0 for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 09 Jun 2023 02:08:32 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q7Pfi-0001vo-8P; Thu, 08 Jun 2023 20:08:06 -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 1q7Pfe-0001vM-Ev for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 20:08:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q7Pfe-0000qF-6K for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 20:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q7Pfd-0002IS-Li for bug-gnu-emacs@gnu.org; Thu, 08 Jun 2023 20:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 09 Jun 2023 00:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63861 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 63861-submit@debbugs.gnu.org id=B63861.16862692608800 (code B ref 63861); Fri, 09 Jun 2023 00:08:01 +0000 Original-Received: (at 63861) by debbugs.gnu.org; 9 Jun 2023 00:07:40 +0000 Original-Received: from localhost ([127.0.0.1]:57892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7PfI-0002Hs-48 for submit@debbugs.gnu.org; Thu, 08 Jun 2023 20:07:40 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:9068) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q7PfD-0002Hb-CT for 63861@debbugs.gnu.org; Thu, 08 Jun 2023 20:07:39 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id BF3E9100054; Thu, 8 Jun 2023 20:07:29 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id AD16E10001C; Thu, 8 Jun 2023 20:07:28 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1686269248; bh=AVrIAWJUiv+D0xOgiWywKasZjqoAeGGQPPKR+zlP41s=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=h7jhQUE4vAk/HaSLEC5+JsOBk+zsfS8kRwtdINobdTyS9qJZNBeNmyIPSzj3q916j Cu3QAa0eoxl5Sx52HrmDvt+Hn9ZFIaFrlxg+E3ICSR94btgkbB5MyRJZf4tN7zCLAp li9gO2RRa48l8r1IDFD7Bf8nprK+gjtcrPhk6wz30yp7Y6gHww6N59+PvopkYkoPPd 5Cy0XhJgGI0XG7t0yAitMEe+R1iBzX+EbDdL8eIKIhtFlr0qgKErJgZEJnouoYkzfb FW3lf1eOdWswCKuVou3kBCXJN7LbBeHitrlTWdeV8ZGQx46fVnTFAZ30jVW3jldIvG rnxF+HHs5A2zQ== Original-Received: from pastel (76-10-180-239.dsl.teksavvy.com [76.10.180.239]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 8C8071200D7; Thu, 8 Jun 2023 20:07:28 -0400 (EDT) In-Reply-To: (Stefan Monnier's message of "Thu, 08 Jun 2023 18:35:05 -0400") 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:263147 Archived-At: > `pp-region`s performance is not quite linear in the size of the file :-( > Interestingly, the same holds for `tv/pp-region`: > > 77101B / 4.62344853s = 16676 B/s > 163258B / 13.237991019s = 12332 B/s > 1125154B / 235.134082197s = 4785 B/s > > even though it works in a fundamentally very different way (which, to > my naive eye should result in a linear performance), so maybe the > slowdown here is due to something external (such as the fact that > various operations on buffers get slower as the buffer gets bigger). I think I figured it out: the larger files happen to have relatively more (smaller) "objects". So it is more or less linear, just not in the size in bytes but in the size in number of objects. Stefan