From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16526: 24.3.50; scroll-conservatively & c-mode regression Date: Sat, 28 Jun 2014 18:12:53 +0300 Message-ID: <834mz56pai.fsf@gnu.org> References: <20140205230001.GB3381@acm.acm> <8338jw230j.fsf@gnu.org> <83wqc8sxd2.fsf@gnu.org> <20140625213206.GA3604@acm.acm> <20140627203416.GA4395@acm.acm> <20140628130059.GA4144@acm.acm> <53AECA88.7010401@gmx.at> <20140628145509.GB4144@acm.acm> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1403968473 8779 80.91.229.3 (28 Jun 2014 15:14:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Jun 2014 15:14:33 +0000 (UTC) Cc: 16526@debbugs.gnu.org To: Alan Mackenzie Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Jun 28 17:14:26 2014 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 1X0uKf-0003wv-Og for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Jun 2014 17:14:25 +0200 Original-Received: from localhost ([::1]:55005 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0uKd-0003X9-4I for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Jun 2014 11:14:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33291) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0uKU-0003W3-Vs for bug-gnu-emacs@gnu.org; Sat, 28 Jun 2014 11:14:20 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1X0uKP-0004b8-SW for bug-gnu-emacs@gnu.org; Sat, 28 Jun 2014 11:14:14 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45118) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X0uKI-0004ae-9F; Sat, 28 Jun 2014 11:14:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1X0uKH-0004fn-M5; Sat, 28 Jun 2014 11:14:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org, bug-cc-mode@gnu.org Resent-Date: Sat, 28 Jun 2014 15:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16526 X-GNU-PR-Package: emacs,cc-mode X-GNU-PR-Keywords: Original-Received: via spool by 16526-submit@debbugs.gnu.org id=B16526.140396839517881 (code B ref 16526); Sat, 28 Jun 2014 15:14:01 +0000 Original-Received: (at 16526) by debbugs.gnu.org; 28 Jun 2014 15:13:15 +0000 Original-Received: from localhost ([127.0.0.1]:36268 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X0uJW-0004eK-Lg for submit@debbugs.gnu.org; Sat, 28 Jun 2014 11:13:14 -0400 Original-Received: from mtaout28.012.net.il ([80.179.55.184]:33321) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1X0uJS-0004dy-UX for 16526@debbugs.gnu.org; Sat, 28 Jun 2014 11:13:12 -0400 Original-Received: from conversion-daemon.mtaout28.012.net.il by mtaout28.012.net.il (HyperSendmail v2007.08) id <0N7V00D00W6NL700@mtaout28.012.net.il> for 16526@debbugs.gnu.org; Sat, 28 Jun 2014 18:12:00 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout28.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N7V00C8GWW0OP30@mtaout28.012.net.il>; Sat, 28 Jun 2014 18:12:00 +0300 (IDT) In-reply-to: <20140628145509.GB4144@acm.acm> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.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:90939 Archived-At: > Date: Sat, 28 Jun 2014 14:55:09 +0000 > From: Alan Mackenzie > Cc: 16526-done@debbugs.gnu.org > > This particular scan-lists which took 0.7s had to traverse 65 comments, > of which 29 had an odd number of apostrophes. Scanning xdisp.c from BOB > to syms_of_xdisp on my machine takes 0.024s. 28 * 0.024s = 0.67s. So if > there were simple cacheing in syntax.c, such that the scan from BOB was > done at most once for each scan-lists, the sluggishness would largely > vanish in this case. Sorry for asking the obvious: why cannot the code know that an apostrophe inside a comment is just a simple character of no special significance? Why does it need to treat apostrophes _inside_comments_ specially?