From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: James Hudon Newsgroups: gmane.emacs.bugs Subject: bug#14259: 24.1; global-linum-mode slows down scrolling and user input in DocView Date: Wed, 24 Apr 2013 16:57:27 -0400 Message-ID: References: <87fvygxm4b.fsf@pilgrim.i-did-not-set--mail-host-address--so-tickle-me> <754nevvpj5.fsf@fencepost.gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1366837082 9762 80.91.229.3 (24 Apr 2013 20:58:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 24 Apr 2013 20:58:02 +0000 (UTC) Cc: 14259@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Apr 24 22:58:07 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1UV6lS-000549-FW for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Apr 2013 22:58:06 +0200 Original-Received: from localhost ([::1]:40027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV6lS-0001Au-6H for geb-bug-gnu-emacs@m.gmane.org; Wed, 24 Apr 2013 16:58:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:47763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV6lN-0001Ap-2C for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2013 16:58:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UV6lK-0008As-Im for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2013 16:58:01 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:37517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UV6lK-0008Ao-Es for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2013 16:57:58 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1UV6qE-00035T-0U for bug-gnu-emacs@gnu.org; Wed, 24 Apr 2013 17:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: James Hudon Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 24 Apr 2013 21:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 14259 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 14259-submit@debbugs.gnu.org id=B14259.136683737511850 (code B ref 14259); Wed, 24 Apr 2013 21:03:01 +0000 Original-Received: (at 14259) by debbugs.gnu.org; 24 Apr 2013 21:02:55 +0000 Original-Received: from localhost ([127.0.0.1]:41626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UV6q7-000354-4Y for submit@debbugs.gnu.org; Wed, 24 Apr 2013 17:02:55 -0400 Original-Received: from mail-ob0-f171.google.com ([209.85.214.171]:56186) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1UV6q4-00034t-8h for 14259@debbugs.gnu.org; Wed, 24 Apr 2013 17:02:53 -0400 Original-Received: by mail-ob0-f171.google.com with SMTP id er7so1947286obc.30 for <14259@debbugs.gnu.org>; Wed, 24 Apr 2013 13:57:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:cc:content-type; bh=Rtgmy6fy5erHi+BngkaZ31f8I/aHpS9DAwuoujB3YsU=; b=udg+osRZqq4wyVG7/GKEd/eArxyYAYaiLU9d3pXAxCqiAjQBnnoj77Xt1CS/NCEXWl GpEB3Wp+pr8LjZodDOrBzoHlG2gedRZhMgQ/yEmoaHof7fWQ2vhHDBSPH745HUTyhao8 2m1g92C3letCMkdE3CNCjpzViZmEw/cxXYEKocr403topd4NNh30wbt0Mg8lXLWb8zhL Ol7QvC+RIfmN1MhIavZNUtEQ2XHF5hU4mKWBx6HeOs8M11wWtNttM3yplOJdgDqflWR8 GumqsOu9cLtWdzypEtZtAgfZMrSluQod6seNY/uOWAO1yfu4PQPtj1txokwH5jn39Xyg /o+A== X-Received: by 10.182.139.37 with SMTP id qv5mr18173842obb.92.1366837067365; Wed, 24 Apr 2013 13:57:47 -0700 (PDT) Original-Received: by 10.182.98.165 with HTTP; Wed, 24 Apr 2013 13:57:27 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:73653 Archived-At: Yes, with nlinum-mode, I don't notice the lag at all. I should add the problem gets much worse as the document you're using grows, which would explain why the lag you're getting is worse than a "noticeable lag". With a 20-page doc, it's just really annoying. With a 50-page doc [1], Emacs is completely unusable. [1] a 50-page pdf: http://www.symantec.com/content/en/us/enterprise/media/security_response/whitepapers/w32_stuxnet_dossier.pdf hudon On Wed, Apr 24, 2013 at 2:47 PM, Stefan Monnier wrote: >> 2. Open a PDF that has pages you can scroll > [...] >> 5. Ensure the global-linum-mode is enabled and now scroll around/change >> pages/etc. There should be a noticeable lag that makes it very hard to use > > Indeed, I can reproduce it, and it's not just a "noticeable lag" for me, > it's so dog slow that it makes you feel like Emacs is failing to respond. > >> Does it help to use nlinum from GNU ELPA instead? > > Yes, it's much faster. With nlinum-mode, there is still a slowdown > (slightly more noticeable for horizontal scrolls than vertical scrolls), > but it's much less severe. > You can see the exact same slow down if you just do: > > M-: (set-window-margins (selected-window) 2) RET > > So the performance cost doesn't come from nlinum-mode. > As for linum-mode, I'm not sure where the performance problem lies. > > > Stefan