emacs-devel
[Top][All Lists]
Advanced

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

Re: image-size


From: Eli Zaretskii
Subject: Re: image-size
Date: Thu, 20 Jun 2013 21:15:44 +0300

> From: Lars Magne Ingebrigtsen <address@hidden>
> Cc: address@hidden
> Date: Thu, 20 Jun 2013 19:54:38 +0200
> 
> >> 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?

I don't know.  Please profile image-size using the built-in profiler,
in a loop that clears the image cache after each call to image-size
(using clear-image-cache or image-flush).



reply via email to

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