From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Pixel-based display functions Date: Wed, 11 Feb 2015 16:31:11 +1100 Message-ID: <87r3txqajk.fsf@building.gnus.org> References: <54CE6BD2.8000402@gmx.at> <8361bliin0.fsf@gnu.org> <83386piiby.fsf@gnu.org> <87oap9yoti.fsf@building.gnus.org> <874mqzvnwo.fsf@building.gnus.org> <83h9uzeb4a.fsf@gnu.org> <87bnl7jrr7.fsf@building.gnus.org> <831tm3dt8u.fsf@gnu.org> <87k2zvgj4d.fsf@building.gnus.org> <83siejcahb.fsf@gnu.org> <83sieiar6i.fsf@gnu.org> <83oap5c480.fsf@gnu.org> <87d25lc3xu.fsf@building.gnus.org> <877fvtc2qj.fsf@building.gnus.org> <83wq3s9rmr.fsf@gnu.org> <878ug72064.fsf@building.gnus.org> <838ug79h3x.fsf@gnu.org> <87egpytlrk.fsf@building.gnus.org> <83d25h938i.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423634100 1809 80.91.229.3 (11 Feb 2015 05:55:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Feb 2015 05:55:00 +0000 (UTC) Cc: rudalics@gmx.at, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 11 06:54:46 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 1YLQG5-0003GO-P6 for ged-emacs-devel@m.gmane.org; Wed, 11 Feb 2015 06:54:45 +0100 Original-Received: from localhost ([::1]:43309 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLQG5-0003zq-22 for ged-emacs-devel@m.gmane.org; Wed, 11 Feb 2015 00:54:45 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42613) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLQG1-0003zH-8K for emacs-devel@gnu.org; Wed, 11 Feb 2015 00:54:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YLQG0-0007bE-7M for emacs-devel@gnu.org; Wed, 11 Feb 2015 00:54:41 -0500 Original-Received: from smtp.syd.comcen.com.au ([203.23.236.77]:3787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YLQFu-0007ZV-AY; Wed, 11 Feb 2015 00:54:34 -0500 Original-Received: from building.gnus.org ([27.96.197.126]) by smtp.syd.comcen.com.au (8.13.4/8.12.9) with ESMTP id t1B5VG0T057659; Wed, 11 Feb 2015 16:31:18 +1100 (EST) In-Reply-To: <83d25h938i.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 10 Feb 2015 17:48:45 +0200") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-comcen-MailScanner-Information: Please contact the ISP for more information X-comcen-MailScanner: Found to be clean X-comcen-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.121, required 4, AWL 0.02, BAYES_50 0.00, RDNS_NONE 0.10) X-comcen-MailScanner-From: larsi@gnus.org X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 203.23.236.77 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:182862 Archived-At: Eli Zaretskii writes: > Well, you insert those lines into the buffer yourself, right? Can you > find the longest line while you are at it, and insert only it? > AFAICS, that's the only way of making window-text-pixel-size do its > job faster: by making the region FROM..TO it needs to traverse > smaller. Well, I don't know how long the line is (in pixels) in the first place. Only calling `window-text-pixel-size' will tell me, right? There's once special case I do know the width of the element, and that's when the only element in the is another . I already know the width of that table, to I wouldn't really have to recompute the width again. It's not an unusual case, but I don't think there would be much of a speed up in total, though. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/