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: Wed, 07 Jun 2023 17:18:00 -0400 Message-ID: References: <87edmnics1.fsf@posteo.net> <871qinme9q.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="21991"; 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 Wed Jun 07 23:19:22 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 1q70Ys-0005Yx-4T for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 07 Jun 2023 23:19:22 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q70YZ-0003Gs-Mg; Wed, 07 Jun 2023 17:19:03 -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 1q70YY-0003Gb-TX for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2023 17:19:02 -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 1q70YY-0005rZ-LR for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2023 17:19:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q70YY-0005u6-HM for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2023 17:19:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 07 Jun 2023 21:19:02 +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 X-Debbugs-Original-Cc: "Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors" , 63861@debbugs.gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.168617269022615 (code B ref -1); Wed, 07 Jun 2023 21:19:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 7 Jun 2023 21:18:10 +0000 Original-Received: from localhost ([127.0.0.1]:54937 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q70Xi-0005sh-G8 for submit@debbugs.gnu.org; Wed, 07 Jun 2023 17:18:10 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:45962) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q70Xf-0005sS-0F for submit@debbugs.gnu.org; Wed, 07 Jun 2023 17:18:09 -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 1q70Xe-0003CH-Po for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2023 17:18:06 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q70Xc-0005iH-Pc for bug-gnu-emacs@gnu.org; Wed, 07 Jun 2023 17:18:06 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 7D0D580502; Wed, 7 Jun 2023 17:18:02 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 50BBB8001C; Wed, 7 Jun 2023 17:18:01 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1686172681; bh=elUZIe8bA3eJwTLoijuUzL2IHHWk3q478+ebDGmo+I0=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=TWzVpx3WLDxzUQS9d1Sgbtz6pUbkyAn0Fjd0qLjXbqFaF/BURxNO8DLKXad/DWn3e dsn+973xFyxHrmUxZoDGbYoeZrbu11P1YNJoxJWMZtKTgMGK+GcWGlXZ7DAw4+nSge 7cualGFr5c092bWy5k6+xWVku4zeu48H9SXe2F2cmXf7b1x5HSeVJhehL9j1vQ4dCT 42mcf1BUCHtBOsgAtMatwt/QjleEZAqVjI8uGEG88UcHAlyVXKOfyEsn6ZsvvyAza/ 8UiNZmQOZf9ZoBvq25cs7bKQxNDCKaOTAl69SxL4zSMQoihmhdQwFfhtn3ZT3YwuI5 QHCqqH/1THZ8w== Original-Received: from pastel (76-10-180-239.dsl.teksavvy.com [76.10.180.239]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 2E8A51205D9; Wed, 7 Jun 2023 17:18:01 -0400 (EDT) In-Reply-To: <871qinme9q.fsf@posteo.net> (Thierry Volpiatto's message of "Wed, 07 Jun 2023 16:19:38 +0000") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, 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: 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:263088 Archived-At: > No, more or less the same: :-( > (benchmark-run-compiled 1 (pp-buffer)) > => (48.501764747 0 0.0) > > I have modified my code so that it can be used outside help, you can > test it with tv/pp-region. Here with always the same test buffer: > > (benchmark-run-compiled 1 (tv/pp-region (point-min) (point-max))) > => (0.259444169 0 0.0) Hmm... I think this depends on the data you're printing. Any hope you can share the data you're using for your tests? [ I understand it's personal, so it can be problematic. Maybe you can anonymize with a search&replace of, say `[[:alpha:]]` to `x`? ] Stefan