From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: Image cache Date: Sun, 12 Feb 2006 06:59:34 +0900 Message-ID: <877j81imk9.fsf@catnip.gol.com> References: <87bqxjjwii.fsf_-_@jurta.org> <878xsmewfo.fsf-monnier+emacs@gnu.org> <87fymsfj7v.fsf@jurta.org> <877j82od4a.fsf@stupidchicken.com> Reply-To: Miles Bader NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1139706345 24409 80.91.229.2 (12 Feb 2006 01:05:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 12 Feb 2006 01:05:45 +0000 (UTC) Cc: Juri Linkov , rms@gnu.org, monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 12 02:05:37 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F85gA-0006NX-Ei for ged-emacs-devel@m.gmane.org; Sun, 12 Feb 2006 02:05:30 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F85g9-00050a-Ss for ged-emacs-devel@m.gmane.org; Sat, 11 Feb 2006 20:05:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1F82nu-0000ZT-LA for emacs-devel@gnu.org; Sat, 11 Feb 2006 17:01:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1F82nb-0000Wc-30 for emacs-devel@gnu.org; Sat, 11 Feb 2006 17:01:17 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F82mX-0000FW-7Y for emacs-devel@gnu.org; Sat, 11 Feb 2006 16:59:53 -0500 Original-Received: from [203.216.5.72] (helo=smtp02.dentaku.gol.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1F82qU-0002f1-Tv; Sat, 11 Feb 2006 17:03:59 -0500 Original-Received: from 203-216-96-013.dsl.gol.ne.jp ([203.216.96.13] helo=catnip.gol.com) by smtp02.dentaku.gol.com with esmtpa (Dentaku) id 1F82mG-0008JC-JQ; Sun, 12 Feb 2006 06:59:36 +0900 Original-Received: by catnip.gol.com (Postfix, from userid 1000) id 05E4E2F4E; Sun, 12 Feb 2006 06:59:34 +0900 (JST) Original-To: Chong Yidong System-Type: i686-pc-linux-gnu In-Reply-To: <877j82od4a.fsf@stupidchicken.com> (Chong Yidong's message of "Fri, 10 Feb 2006 21:14:45 -0500") Original-Lines: 21 X-Abuse-Complaints: abuse@gol.com X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:50377 Archived-At: Chong Yidong writes: >> One certainly doesn't want to do a stat on _every_ reference, as stats >> can be expensive (and the thumbs package will tend to use lots of >> images) > > I think a good way to do it is to provide a function that Lisp > programs can use to reload a specific cached image (rather than the > entire cache). That might a good function to have -- it's certainly better than simply flushing the cache when you know you want to refresh a given image -- but it obviously doesn't solve quite the same problem. A mode that displays lots of images might like to be able to have them all update auto-magically without having a bunch of elisp hair in place to keep track of their status; the elisp solution would probably be clumsier and less efficient than simply statting (periodically) upon redisplay. -Miles -- The secret to creativity is knowing how to hide your sources. --Albert Einstein