From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Slow image display over network Date: Fri, 24 Sep 2010 13:23:02 +0200 Organization: Programmerer Ingebrigtsen Message-ID: References: <87iq1v6hg1.fsf@rimspace.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1285327569 18800 80.91.229.12 (24 Sep 2010 11:26:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 24 Sep 2010 11:26:09 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 24 13:26:07 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Oz6Pn-00071s-57 for ged-emacs-devel@m.gmane.org; Fri, 24 Sep 2010 13:26:07 +0200 Original-Received: from localhost ([127.0.0.1]:38053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oz6Pm-00069n-Cf for ged-emacs-devel@m.gmane.org; Fri, 24 Sep 2010 07:26:06 -0400 Original-Received: from [140.186.70.92] (port=42593 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oz6N6-0005YT-4v for emacs-devel@gnu.org; Fri, 24 Sep 2010 07:23:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oz6N2-0003vI-5e for emacs-devel@gnu.org; Fri, 24 Sep 2010 07:23:20 -0400 Original-Received: from lo.gmane.org ([80.91.229.12]:57102) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oz6N1-0003uu-Cw for emacs-devel@gnu.org; Fri, 24 Sep 2010 07:23:16 -0400 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Oz6Mx-0005gq-1N for emacs-devel@gnu.org; Fri, 24 Sep 2010 13:23:11 +0200 Original-Received: from cm-84.215.34.171.getinternet.no ([84.215.34.171]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Sep 2010 13:23:11 +0200 Original-Received: from larsi by cm-84.215.34.171.getinternet.no with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 24 Sep 2010 13:23:11 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 23 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cm-84.215.34.171.getinternet.no Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAElBMVEW1k256TS0JBQlqNh8B AwcxGB2DlOlfAAACRUlEQVQ4jVWUQZLjIAxFRXdlD6HYxzTsw1AcYBj33oJw/6v0FzjJNLGpsh5f Eh8qlMsYo+Nt49egOffRSvPB+xBq2DHCPkGHIiNa52+fAyC22Jtvoc7Amvd6pkKh5qERlZdUlbyP zQ//SnTWEFARrVLv1yBfq6+x1tVPOKuIImCu9ffyPQSay56thPBMCAVv3FxqissXX3n7F7Gt7hL5 w/CwX1WxS9vj0FshZi4AnTkl9oqtNY05O2b3Fwpnovtw7KyzXAxfZ1fYADkXAfkCMNwo1108EHdj +24jjlKC6dexNQAfBaC/uvyYuwtBvIN11HBCKZVpcotnNOdMFpPWmPvISWlNuuSerCGhJtlk8BR1 aLuVnE9FygmPydZfDv3npkzOUFhrJWqAbbwc98uNjAwyKZ8jWe9urdzNAsoYSYUqSRRH1y9gl+Cu DYDbb1YyAySrCQNf2l+3EVBcqhCmCWQ6OtFGpEjiKk2gDqGkNJYDoF0zAwZm6AurT/g5DjXbnaDF sHPo6uOBuxJJC5gVAkDb+Vof3489LsV/YIT6qD7eZ1ew4gQDCAochfSON73AAKht0FLk/ErVFhAD T6DC96yxz+LbAv2t8KJ47EPBappOfYY42o4LMqQ4i61zg8qEGHHXfBto1yfsYwGcI3q5YC3F7aso OaPTEkqankPRG+gXwP1RaqXS8kFvwaxpOpYqWbgsQ+iurdyfATCPaN2Aefy9Z/zBULZ8zIqTTYBH QCqs9VOEuO0yJXi1Lgucy9YiR4le7v0PoeG/eGy6PcQAAAAASUVORK5CYII= Mail-Copies-To: never X-Now-Playing: Meat Beat Manifesto's _... In Dub_: "Retrograde Dub" User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:8YzmrATYDSeYhCKfPrWSVYhqlIg= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130752 Archived-At: Daniel Pittman writes: > Aw, heck. I saved you the time: PNG loading does create the X image and > pixmap during the load process, confirming my guesswork. I didn't check the > other image loaders, but they would sensibly behave the same way, showing the > same result. Right. Image load pushes the image over X, even though we're not actually going to display it? That means that the way Gnus displays images is as pessimal as possible. When reading a HTML message with images, Gnus calls (image-size (create-image ...)) to find out the size, and then if it's too big, it rescales the image down. And this means that the huge image has to be transferred first over the slow X connection, and then rescaled, and then probably transferred again? Is this really necessary? :-) Why can't image transfer to the X server wait until the `put-image' call? -- (domestic pets only, the antidote for overdose, milk.) larsi@gnus.org * Lars Magne Ingebrigtsen