From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: Suggestion / feature request Date: Thu, 19 Apr 2012 20:59:31 +0200 Message-ID: <87hawfsg30.fsf@thinkpad.tsdh.de> References: <4F901313.5040804@unilim.fr> <87sjfzst54.fsf@thinkpad.tsdh.de> <4F904830.5010401@unilim.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334861982 2168 80.91.229.3 (19 Apr 2012 18:59:42 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 19 Apr 2012 18:59:42 +0000 (UTC) Cc: emacs-devel@gnu.org To: Carlos Aguilar Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 19 20:59:42 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SKwZx-0003g5-FL for ged-emacs-devel@m.gmane.org; Thu, 19 Apr 2012 20:59:41 +0200 Original-Received: from localhost ([::1]:52046 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKwZw-0007ZH-QL for ged-emacs-devel@m.gmane.org; Thu, 19 Apr 2012 14:59:40 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:55956) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKwZt-0007ZC-4t for emacs-devel@gnu.org; Thu, 19 Apr 2012 14:59:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SKwZr-0002jh-4C for emacs-devel@gnu.org; Thu, 19 Apr 2012 14:59:36 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:32884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SKwZq-0002jS-Tx for emacs-devel@gnu.org; Thu, 19 Apr 2012 14:59:35 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 0868E1A4120; Thu, 19 Apr 2012 20:59:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at uni-koblenz.de Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3KBrIcq5d4NK; Thu, 19 Apr 2012 20:59:32 +0200 (CEST) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad.tsdh.de (tsdh.uni-koblenz.de [141.26.67.142]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTPSA id AE4E51A4125; Thu, 19 Apr 2012 20:59:32 +0200 (CEST) In-Reply-To: <4F904830.5010401@unilim.fr> (Carlos Aguilar's message of "Thu, 19 Apr 2012 19:15:28 +0200") User-Agent: Gnus/5.130004 (Ma Gnus v0.4) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 141.26.64.15 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149834 Archived-At: Carlos Aguilar writes: Hi Carlos, > time (mkdir file1_burst; cd file1_burst; pdftk ../file1.pdf burst; cd .. > mkdir file2_burst; cd file2_burst; pdftk ../file2.pdf burst > for I in pg*; do echo $I; diff -a $I ../file1_burst/$I|grep -v > 'BaseFont\|FontName\|Creator\|Info\|...c...\|\-\-\-\|..c..'; done > cd .. ; rm -Rf file1_burst; rm -Rf file2_burst) > > pg_0085.pdf > < x?T?n?0 > ??W?(5CQ??^ > < 0000059304 00000 n >> 0000059305 00000 n > < 0000059402 00000 n > < 0000059466 00000 n > < 0000059513 00000 n >> 0000059403 00000 n >> 0000059467 00000 n >> 0000059514 00000 n > < 59672 >> 59673 > pg_0086.pdf > > real 0m7.009s > user 0m6.160s > sys 0m0.210s > > This can probably be optimized much. The only page for which there is > a difference is the one with a change. Doc-view reconversion needs in > the same computer 20 seconds. Hm, seven seconds is not so super-fast compared to a complete reconversion taking 20 seconds. And if you edit one of the first pages in the TeX doc, it takes additional 7 seconds to find out that you have to reconvert almost everything, anyway. Especially consider that you are most probably viewing page 85 when you change it in the TeX document and recompile. Then, if doc-view would use such a diff-command it'll take 7 seconds for it to know that it needs to reconvert only page 85. The current doc-view behavior is to start the reconversion immediately *with the current page first*. So right now, you'll see your changes on the current page almoust instantly. The many temporary files are a bit problematic, too... Another problem is that while we can somehow expect that most (at least GNU/Linux) machines have GhostScript installed, but that's probably not the case for pdftk. But in general, if there was some command that given to PDF files quickly tells me the pages that differ, I'd try to make use of it in doc-view, of course, as an optional feature. But "quickly" means something around one second for a 100 pages doc. Bye, Tassilo