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 15:03:32 +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 1430489031 14612 80.91.229.3 (1 May 2015 14:03:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 1 May 2015 14:03:51 +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 16:03:49 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 1YoBXb-0007cH-5L for ged-emacs-devel@m.gmane.org; Fri, 01 May 2015 16:03:43 +0200 Original-Received: from localhost ([::1]:54157 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoBXV-0002QO-7s for ged-emacs-devel@m.gmane.org; Fri, 01 May 2015 10:03:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46730) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoBXS-0002Nm-4P for emacs-devel@gnu.org; Fri, 01 May 2015 10:03:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YoBXR-00063j-Bp for emacs-devel@gnu.org; Fri, 01 May 2015 10:03:34 -0400 Original-Received: from mail-lb0-x234.google.com ([2a00:1450:4010:c04::234]:33864) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YoBXR-00063b-4c for emacs-devel@gnu.org; Fri, 01 May 2015 10:03:33 -0400 Original-Received: by lbcga7 with SMTP id ga7so65385815lbc.1 for ; Fri, 01 May 2015 07:03:32 -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=LIhdoz03PAGvPCe6zDHnadDlV4THgAud7fzRtuOSkU4=; b=Hyk7IyGI2+CLhIUy4dnuoNiPUJpXfifg3R52jD4yWx6TqKabNQvHE5kJ2lYXRv8aPq /T6X094Z2DF/QHELDnPOAXcd23g4SBJ2VOi2vwP6Mt4xv65eHPRtkSH05Mt/g7knHyC0 AM53gDiDXsRpmUl0U7Yl1nYQFsnv4BnPZKn1vG6u6cor9gyIdEfspLmTL1GtcBoxE8qI L0VtbKOL6l+hNQY3xWqnCfnMDT4dhNh5a2nAsm9sOQdB3zQVLibu1Z8lY23t3k5c0aPP SLmEiPFtYUowaWa/4JqKPcAETRp5Ey+kVRwviADZzfJoegx81vnmo8LDWhHzU2ciiNLn O1GQ== X-Received: by 10.112.200.230 with SMTP id jv6mr8345084lbc.21.1430489012182; Fri, 01 May 2015 07:03:32 -0700 (PDT) Original-Received: by 10.25.150.1 with HTTP; Fri, 1 May 2015 07:03:32 -0700 (PDT) In-Reply-To: X-Google-Sender-Auth: PtXi0UmCZrn_YEj7JIUlcddVr2E X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c04::234 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:186078 Archived-At: 2015-05-01 14:43 GMT+01:00 Stefan Monnier : >> The outcome is that very large buffers (with entries around the >> thousands) will come up instantaneously, where they would normally >> take a couple of seconds to print. > > I'm wondering why it should take that long to print a few > thousand entries. Did you profile the code to see where the time > is spent? I did profile, and as far as I could tell it is spent in the printing itself. =P By which I mean I couldn't see any obvious source. All I could tell is that it's not in the sorting of entries.