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 22:11:18 +0300

> From: Lars Magne Ingebrigtsen <address@hidden>
> Cc: address@hidden
> Date: Thu, 20 Jun 2013 20:46:20 +0200
> 
> > Actually, I have a guess: the time it takes is needed to decompress
> > the JPEG data.  On my machine, even with local files of 3MB size it
> > takes about a second.
> 
> address@hidden /tmp]$ time djpeg /tmp/0.jpg > /dev/null
> 
> real    0m0.028s
> user    0m0.025s
> sys     0m0.003s

djpeg is not Emacs.  I just stepped through jpeg_load_body, and this
line takes about 1.5 sec for a 3 MB JPEG image:

  fn_jpeg_start_decompress (&mgr->cinfo);

Why don't you do the same (step with a debugger through that function)
and see where that time goes in your case?

> And, like I said, if X is local, it's virtually instantaneous.  It's
> network traffic related.

Not here.  And I don't even have X.

Anyway, if in your case it's network related, prove it.



reply via email to

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