unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Ami Fischman <usenet@fischman.org>
Subject: Re: [patch] cache color info for remote X sessions [Was: Emacs 21/X11 generating unbelieveable network traffic]
Date: Sun, 06 Oct 2002 13:22:05 -0700	[thread overview]
Message-ID: <m31y739v2q.fsf@fischman.org> (raw)
In-Reply-To: 59BD935A-D955-11D6-BC61-00039363E640@swipnet.se

"Jan D." <jan.h.d@swipnet.se> writes:

> Talking about pango, they have a font cache for X11 fonts in their X11
> specific code.  May be worthwhile to check out.

Checked it out.  The way pango does it is by only caching the pointer to
the returned XFontStruct, and maintaining a reference count for each
structure (in order to handle the freeing of these structures later).  That
could work here as well, if we wrap the XFree.*Font.* calls as well.  

However, my cursory tracing/sniffing seems to indicate that not that many
packets get wasted on redundant calls to the font functions, so I'm not
sure this is worth doing.

-- 
  Ami Fischman
  usenet@fischman.org

  reply	other threads:[~2002-10-06 20:22 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-06  0:21 [patch] cache color info for remote X sessions [Was: Emacs 21/X11 generating unbelieveable network traffic] Ami Fischman
2002-10-06  1:29 ` Miles Bader
2002-10-06  5:31   ` Ami Fischman
2002-10-06  6:53     ` Miles Bader
2002-10-06 17:59     ` Jan D.
2002-10-06 20:22       ` Ami Fischman [this message]
2002-10-06 18:14     ` Ami Fischman
2002-10-07 14:53     ` Stefan Monnier
2002-10-07 15:35       ` Ami Fischman
2002-10-07 15:52         ` Stefan Monnier
2002-10-07 16:49           ` Ami Fischman
2002-10-07 17:59             ` Jan D.
2002-10-07 18:14           ` Jan D.
2002-10-07 20:07             ` Stefan Monnier
2002-10-08  5:16               ` Jan D.
2002-10-08 17:21         ` Richard Stallman
2002-10-07 15:31     ` Richard Stallman
2002-10-07 17:04       ` Ami Fischman
2002-10-08 17:21         ` Richard Stallman
2002-10-06  7:46 ` Jan D.
2002-10-06 17:33   ` Ami Fischman
2002-10-07 15:31 ` Richard Stallman

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=m31y739v2q.fsf@fischman.org \
    --to=usenet@fischman.org \
    /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).