From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Lazy printing in tabulated-list-mode Date: Sun, 03 May 2015 20:19:13 -0400 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1430698772 16735 80.91.229.3 (4 May 2015 00:19:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 4 May 2015 00:19:32 +0000 (UTC) Cc: emacs-devel To: Artur Malabarba Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon May 04 02:19:24 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yp46U-0001wa-JK for ged-emacs-devel@m.gmane.org; Mon, 04 May 2015 02:19:22 +0200 Original-Received: from localhost ([::1]:60547 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yp46T-0005l6-VI for ged-emacs-devel@m.gmane.org; Sun, 03 May 2015 20:19:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yp46Q-0005kx-Lr for emacs-devel@gnu.org; Sun, 03 May 2015 20:19:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yp46M-00046X-Kr for emacs-devel@gnu.org; Sun, 03 May 2015 20:19:18 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:40738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yp46M-00046T-Gb for emacs-devel@gnu.org; Sun, 03 May 2015 20:19:14 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVRFpYts/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCwsOJhIUGA0kiBOiEYwbUgMBAoM+AwODbQSjY4RY X-IPAS-Result: AgUFAGvvdVRFpYts/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCwsOJhIUGA0kiBOiEYwbUgMBAoM+AwODbQSjY4RY X-IronPort-AV: E=Sophos;i="5.11,557,1422939600"; d="scan'208";a="118160288" Original-Received: from 69-165-139-108.dsl.teksavvy.com (HELO fmsmemgm.homelinux.net) ([69.165.139.108]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 03 May 2015 20:19:14 -0400 Original-Received: by fmsmemgm.homelinux.net (Postfix, from userid 20848) id 002EBAE12D; Sun, 3 May 2015 20:19:13 -0400 (EDT) In-Reply-To: (Artur Malabarba's message of "Sun, 3 May 2015 18:02:06 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:186168 Archived-At: > Yep, that's what I was doing (if you consider 7 ~ 10). > Here's the command I was running under M-: > (progn (profiler-start 'cpu) > (tabulated-list-print)(tabulated-list-print)(tabulated-list-print)(tabulated-list-print)(tabulated-list-print)(tabulated-list-print)(tabulated-list-print) > (profiler-report) (profiler-stop)) Hmm... but the numbers I saw seemed to indicate a running time of 1.3s, so that would mean you saw a running time of of 0.2s per call to tabulated-list-print which seems not to justify the addition of laziness. Stefan