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: Fri, 30 Jan 2015 17:37:00 +1100 Message-ID: <877fw4zsdv.fsf@building.gnus.org> References: <83sifzjflk.fsf@gnu.org> <87fvbyagaw.fsf@building.gnus.org> <83iogujvbq.fsf@gnu.org> <87tx0ee7rf.fsf@building.gnus.org> <83egricpvg.fsf@gnu.org> <87zj97vic8.fsf@building.gnus.org> <83wq4argjp.fsf@gnu.org> <87iofui8vo.fsf@building.gnus.org> <838ugqqczp.fsf@gnu.org> <877fw9dndz.fsf@building.gnus.org> <83a914ozsh.fsf@gnu.org> <874mrb1t62.fsf_-_@building.gnus.org> <87vbjrl49k.fsf@violet.siamics.net> <8361bqogah.fsf@gnu.org> <87k306pfi9.fsf@building.gnus.org> <87egqekrd7.fsf@building.gnus.org> <877fw53eat.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1422599877 15717 80.91.229.3 (30 Jan 2015 06:37:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 30 Jan 2015 06:37:57 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jan 30 07:37:55 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 1YH5DH-0006m1-1B for ged-emacs-devel@m.gmane.org; Fri, 30 Jan 2015 07:37:55 +0100 Original-Received: from localhost ([::1]:34964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH5DG-0007B9-2P for ged-emacs-devel@m.gmane.org; Fri, 30 Jan 2015 01:37:54 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41849) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH5D9-0007Ay-KM for emacs-devel@gnu.org; Fri, 30 Jan 2015 01:37:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YH5D5-0005IB-SK for emacs-devel@gnu.org; Fri, 30 Jan 2015 01:37:47 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:35937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YH5D5-0005Em-Lx for emacs-devel@gnu.org; Fri, 30 Jan 2015 01:37:43 -0500 Original-Received: from diaman3.lnk.telstra.net ([203.45.116.145] helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1YH5Cd-0008Hs-Ur for emacs-devel@gnu.org; Fri, 30 Jan 2015 07:37:16 +0100 In-Reply-To: <877fw53eat.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Fri, 30 Jan 2015 00:30:02 +1100") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-MailScanner-ID: 1YH5Cd-0008Hs-Ur MailScanner-NULL-Check: 1423204636.9333@qwPxcmg3cr0GjwkMxtmwdg X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 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:182021 Archived-At: Lars Ingebrigtsen writes: > I'll do some exploratory hacking and see how that goes... I've gotten rendering a typical variable-pitch manual page down to 0.04s, but rendering multi-column layouts is still too slow to be used on realistic pages. `font-get-glyphs' on a large region is quite fast, but since the font may vary, I'm calling it on a char-by-char basis, and that's s-l-o-w. Hm... `font-at' is fast, too, so perhaps I can get something working by collating regions or something. `font-get-glyphs' returns an awful lot of data, and virtually all of it isn't used for doing this sort of filling, so I have a suspicion that I'm going to end up writing a new C-level function that just returns glyph widths fast. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/