unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: Chad Brown <yandros@MIT.EDU>
Cc: "Jan Djärv" <jan.h.d@swipnet.se>,
	"Emacs development discussions" <emacs-devel@gnu.org>
Subject: Re: Emacs, QT and Cairo
Date: Wed, 14 Jul 2010 10:39:02 +0900	[thread overview]
Message-ID: <87zkxuhmfd.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <5A91499A-0470-43FD-9F48-560CEAD3424C@mit.edu>

Chad Brown writes:

 > It would be interesting to see an analysis of emacs' redisplay
 > needs in light of modern cpu/gpu/network usage, or even a list of
 > needs for emacs' redisplay priorities.  I recall the 18->19->20
 > discussions vaguely, but I'm willing to wager that there are far
 > fewer people using x-terminals over 14.4k modem lines these days.
 > :-)

Nowadays redisplay is all about memory and networks.  Forget CPU and
GPU.  Client memory is probably not that important (unless you cache a
lot of off-screen real estate), and even server memory shouldn't be a
problem for Emacs, which makes fairly modest demands (except for glyph
caching if you're using Xft).

I regularly get complaints from people about redisplay over the
network.  The problem as usual is not bandwidth (what is measured by
"14.4k"), but latency.  It's the number of roundtrips that matters,
and modern WANs often have greater average latency than a modem line.
I'm typing this on a link that goes through 10 hosts with IPs to
travel a net of 4.5km, and the performance is, if anything, worse than
the 28.8k modem I used to use; on my sabbatical that was 15-20 hosts
and 10,000km, so speed of light became a factor and it could be awful.
Of course if you've got lots of toolbar icons and suchlike, it takes
more time to upload them to the X server over a 14.4k line, but once
they're uploaded, they generally hang around for a long time since
server memory has expanded enormously.

 > A `truly excellent' effort in this space would almost certainly
 > require a huge amount of work from at least one of the already
 > generous/overburdened developers who truly understands the
 > redisplay internals,

That's not clear (although my opinion may not be accurate since the
XEmacs redisplay is quite different).  For example, one of the tasks
that has a very complicated implementation in the XEmacs redisplay is
drawing the cursor.  But that's because in the basic X protocol you
need to draw things in layers.  It's possible that in a Cairo
implementation some of these things could call out to the RENDER
protocol, which would allow full use of Porter-Duff.  While that would
indeed require somebody to book up on Porter-Duff and probably some
ingenuity in figuring out how to use the 31 (IIRC) composition
operators to achieve minimal roundtrips, this would be quite local,
and not require overall redisplay complexity.



  reply	other threads:[~2010-07-14  1:39 UTC|newest]

Thread overview: 117+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-13 19:02 Emacs, QT and Cairo Was: Re: Efforts to attract more users? Stephen Eilert
2010-07-13 19:29 ` Chong Yidong
2010-07-13 19:51   ` Chad Brown
2010-07-13 20:48 ` Jan Djärv
2010-07-13 22:30   ` Emacs, QT and Cairo Chad Brown
2010-07-14  1:39     ` Stephen J. Turnbull [this message]
2010-07-14  2:32       ` Óscar Fuentes
2010-07-14  7:29     ` Eli Zaretskii
2010-07-14 18:37       ` Chad Brown
2010-07-14 20:45         ` Eli Zaretskii
2010-07-14 21:24           ` Óscar Fuentes
2010-07-15  6:55             ` Emacs and Gnome Canvas (was: Emacs, QT and Cairo) Eli Zaretskii
2010-07-15  7:46               ` Emacs and Gnome Canvas Jan Djärv
2010-07-15  7:53                 ` Jan Djärv
2010-07-15  8:36                   ` joakim
2010-07-15  8:40                   ` Eli Zaretskii
2010-07-15  8:50                     ` Jan Djärv
2010-07-15  8:38                 ` Eli Zaretskii
2010-07-15  8:48                   ` Jan Djärv
2010-07-15  8:59                     ` Eli Zaretskii
2010-07-15  9:29                       ` Jan Djärv
2010-07-15 10:24                         ` Eli Zaretskii
2010-07-15 10:54                           ` Jan Djärv
2010-07-15 12:27                             ` Eli Zaretskii
2010-07-15 14:18                               ` Óscar Fuentes
2010-07-15 15:14                                 ` Eli Zaretskii
2010-07-16  6:33                                   ` Miles Bader
2010-07-15 16:00                                 ` Chong Yidong
2010-07-15 16:27                                   ` Óscar Fuentes
2010-07-15 17:06                                     ` Eli Zaretskii
2010-07-15 17:48                                       ` Óscar Fuentes
2010-07-15 18:06                                         ` Eli Zaretskii
2010-07-15 21:27                                           ` Óscar Fuentes
2010-07-16  8:17                                             ` Eli Zaretskii
2010-07-16 14:24                                               ` Óscar Fuentes
2010-07-16 15:19                                                 ` Eli Zaretskii
2010-07-16 16:07                                                   ` Óscar Fuentes
2010-07-16 18:43                                                     ` Eli Zaretskii
2010-07-16 21:21                                                       ` Óscar Fuentes
2010-07-16 23:44                                                         ` Chad Brown
2010-07-17  0:08                                                           ` Óscar Fuentes
2010-07-17  7:57                                                             ` Eli Zaretskii
2010-07-17  8:34                                                               ` Andreas Schwab
2010-07-17  9:10                                                                 ` Eli Zaretskii
2010-07-17  9:40                                                                   ` Andreas Schwab
2010-07-17 10:23                                                                     ` Eli Zaretskii
2010-07-17 13:49                                                                       ` Óscar Fuentes
2010-07-17  7:27                                                         ` Eli Zaretskii
2010-07-17 13:42                                                           ` Óscar Fuentes
2010-07-17 15:27                                                             ` Eli Zaretskii
2010-07-17 21:53                                                               ` Óscar Fuentes
2010-07-18  1:42                                                               ` Miles Bader
2010-07-18  2:45                                                                 ` Óscar Fuentes
2010-07-18  8:06                                                                   ` Chad Brown
2010-07-18 14:43                                                                     ` Óscar Fuentes
2010-07-21  8:34                                                             ` Stefan Monnier
2010-07-22 14:26                                         ` Stefan Monnier
2010-07-15 17:22                                     ` Chong Yidong
2010-07-15 18:02                                       ` Óscar Fuentes
2010-07-15 22:10                                         ` Stephen Eilert
2010-07-16  7:52                                           ` Eli Zaretskii
2010-07-16  2:14                                   ` YAMAMOTO Mitsuharu
2010-07-16  7:33                                     ` Jan Djärv
2010-07-16  9:52                                       ` Eli Zaretskii
2010-07-16 10:15                                         ` YAMAMOTO Mitsuharu
2010-07-16 10:39                                           ` Eli Zaretskii
2010-07-16 12:42                                             ` Jan Djärv
2010-07-17  3:50                                               ` YAMAMOTO Mitsuharu
2010-07-17  8:33                                                 ` Jan Djärv
2010-07-17  8:38                                                   ` YAMAMOTO Mitsuharu
2010-07-17  9:18                                                     ` Jan Djärv
2010-07-17  9:25                                                       ` YAMAMOTO Mitsuharu
2010-07-17 10:26                                                         ` Jan Djärv
2010-07-18  3:51                                                           ` YAMAMOTO Mitsuharu
2010-07-18  7:10                                                             ` Jan Djärv
2010-07-18  7:45                                                               ` YAMAMOTO Mitsuharu
2010-07-18  9:06                                                                 ` Jan Djärv
2010-07-19  0:50                                                                   ` YAMAMOTO Mitsuharu
2010-07-17  1:00                                             ` YAMAMOTO Mitsuharu
2010-07-17  1:40                                               ` YAMAMOTO Mitsuharu
2010-07-17  8:04                                               ` Eli Zaretskii
2010-07-17  8:25                                                 ` YAMAMOTO Mitsuharu
2010-07-16 12:21                                         ` Jan Djärv
2010-07-16 10:01                                       ` YAMAMOTO Mitsuharu
2010-07-16 12:26                                         ` Jan Djärv
2010-07-16 14:05                                           ` Davis Herring
2010-07-16 17:38                                             ` Jan Djärv
2010-07-17  1:12                                               ` YAMAMOTO Mitsuharu
2010-07-17  7:14                                                 ` Eli Zaretskii
2010-07-17  7:31                                                   ` YAMAMOTO Mitsuharu
2010-07-17  8:12                                                     ` Eli Zaretskii
2010-07-17  8:32                                                       ` YAMAMOTO Mitsuharu
2010-07-15 14:24                               ` Jan Djärv
2010-07-15 14:35                                 ` Eli Zaretskii
2010-07-15 15:16                                   ` Jan Djärv
2010-07-15 15:20                                     ` Eli Zaretskii
2010-07-15 17:14                                       ` Jan Djärv
2010-07-15  9:20               ` Andy Wingo
2010-07-15 18:41               ` Emacs and Gnome Canvas (was: Emacs, QT and Cairo) Dirk-Jan C. Binnema
2010-07-15 21:51                 ` Emacs and Gnome Canvas Óscar Fuentes
2010-07-15 22:21                   ` Bruce Stephens
2010-07-27 21:24     ` Emacs, QT and Cairo Stefan Monnier
2010-07-27 21:36       ` Chad Brown
2010-07-28  3:05         ` Eli Zaretskii
2010-07-14  8:59 ` Emacs, QT and Cairo Was: Re: Efforts to attract more users? YAMAMOTO Mitsuharu
2010-07-14  9:41   ` Emacs, QT and Cairo David Engster
2010-07-14  9:56     ` Jan Djärv
2010-07-14 13:50     ` Drew Adams
2010-07-14 14:14       ` David Engster
2010-07-14 14:28         ` joakim
2010-07-14 15:41   ` Emacs, QT and Cairo Was: Re: Efforts to attract more users? Chong Yidong
2010-07-14 16:17     ` joakim
2010-07-14 18:04       ` Jan Djärv
2010-07-15 23:15 ` Andrew W. Nosenko
2010-07-16  7:41   ` Jan Djärv
2010-07-16 10:24     ` Andrew W. Nosenko
2010-07-16 12:36       ` Jan Djärv

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zkxuhmfd.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=emacs-devel@gnu.org \
    --cc=jan.h.d@swipnet.se \
    --cc=yandros@MIT.EDU \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).