From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Artur Malabarba Newsgroups: gmane.emacs.devel Subject: Re: Lazy printing in tabulated-list-mode Date: Fri, 1 May 2015 19:11:37 +0100 Message-ID: References: Reply-To: bruce.connor.am@gmail.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1430503916 4082 80.91.229.3 (1 May 2015 18:11:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 May 2015 18:11:56 +0000 (UTC) Cc: emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 01 20:11:56 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 1YoFPf-00014F-9e for ged-emacs-devel@m.gmane.org; Fri, 01 May 2015 20:11:47 +0200 Original-Received: from localhost ([::1]:55091 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoFPe-0004ek-Ir for ged-emacs-devel@m.gmane.org; Fri, 01 May 2015 14:11:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoFPa-0004ak-70 for emacs-devel@gnu.org; Fri, 01 May 2015 14:11:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YoFPW-0002Yp-UU for emacs-devel@gnu.org; Fri, 01 May 2015 14:11:42 -0400 Original-Received: from mail-la0-x22b.google.com ([2a00:1450:4010:c03::22b]:34207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoFPW-0002YR-Nm for emacs-devel@gnu.org; Fri, 01 May 2015 14:11:38 -0400 Original-Received: by laat2 with SMTP id t2so68761936laa.1 for ; Fri, 01 May 2015 11:11:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:reply-to:sender:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=ie2EJj64+iPh9wC8cvNMaOvhVdT+yQQm7flpY52HLTU=; b=geutzr3tbiJek+64Xe935joGN4YnlT30M8rUb7URS1uH1A7CjnZS1rLQ2lZLVW+EBx G6v1Ubi4IYVPZ7rDqk/o7ET2EpL37hxZu7SPBIS+p7SQKQCRlzkrR2SzYUuxDD7WOWbi cFza65snFgpkPInFTOXZOxs7NAhTJ+H0SjTWFyPyYTTEGvIh6AlPhDXzQtTA05D06IPh yxAOl2Vq3rQDxoTW0+ObOiZDpxS5Wm+Q7FdRfOPSer25LGUzN5eNCBI33tclXoDMINbU SGBph+3J+8fJQxvU+EblSHivmmUqfb23EgURUM4V4/M4ev+uGjg8zeuCBQPY0AE5z74V aRHQ== X-Received: by 10.112.25.69 with SMTP id a5mr9050079lbg.16.1430503897999; Fri, 01 May 2015 11:11:37 -0700 (PDT) Original-Received: by 10.25.150.1 with HTTP; Fri, 1 May 2015 11:11:37 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: MPFw3naTli07_MjInDuj-8FkDX4 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c03::22b 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:186089 Archived-At: I mean I didn't look hard enough. I've included the report below, here is what I can infer - command-execute 3383 59% - call-interactively 3383 59% - funcall-interactively 3312 58% - eval-expression 3312 58% - eval 3312 58% - progn 3312 58% - tabulated-list-print 3309 58% - let 3309 58% - let 2676 46% - while 2676 46% - let 2669 46% - apply 2646 46% - tabulated-list-print-entry 2640 46% - let 2624 46% - let 2254 39% - while 2241 39% - let 2164 37% - setq 2151 37% - tabulated-list-print-col 2101 36% - let* 1939 34% + let 965 16% + if 534 9% + setq 50 0% < 33 0% + and 13 0% or 9 0% concat 6 0% setq 4 0% + if 96 1% add-text-properties 21 0% insert 3 0% + if 465 8% + profiler-report 3 0% + byte-code 71 1% + ... 2313 40% 2015-05-01 18:27 GMT+01:00 Stefan Monnier : >> I did profile, and as far as I could tell it is spent in the printing itself. =P > > You mean it's spent in `insert'? > > > Stefan