emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: image-size


From: Lars Magne Ingebrigtsen
Subject: Re: image-size
Date: Thu, 20 Jun 2013 19:54:38 +0200
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux)

Eli Zaretskii <address@hidden> writes:

> What exactly goes "via ssh"?

Emacs is opened via X tunnelling over ssh.

>> (benchmark-elapse (image-size (create-image "/tmp/0.jpg") nil))
>> => 2.695448783
>
> Where can I find this file to try that?

Just use any medium-sized image -- it doesn't matter much.  That one was
from 9gag somewhere.

>> The next call is a lot faster, meaning that something has been pushed to
>> X already:
>> 
>> (benchmark-elapse (image-size (create-image "/tmp/0.jpg") nil))
>> => 0.000274576
>
> It's not pushed to X, it is cached internally by Emacs in its image
> cache.

If it's not transferred via X, why is it slow when running Emacs over
ssh, but not locally?

-- 
(domestic pets only, the antidote for overdose, milk.)
  bloggy blog http://lars.ingebrigtsen.no/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]