From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: Bug #25608 and the comment-cache branch Date: Sat, 11 Feb 2017 18:53:58 -0800 Message-ID: References: <20170202202418.GA2505@acm> <83lgtouxpf.fsf@gnu.org> <20170202215154.GB2505@acm> <83h94bvhzw.fsf@gnu.org> <20170203172952.GC2250@acm> <0a40d539-b7bc-2655-5429-6280022106ee@yandex.ru> <20170204102410.GA2047@acm> <8f9e68fc-4314-625d-b4bf-796c71c91798@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1486868077 8191 195.159.176.226 (12 Feb 2017 02:54:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Feb 2017 02:54:37 +0000 (UTC) User-Agent: Gnus/5.130016 (Ma Gnus v0.16) Emacs/25.1.91 (darwin) Cc: Alan Mackenzie , Eli Zaretskii , emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 12 03:54:31 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cckJ4-0001YB-Id for ged-emacs-devel@m.gmane.org; Sun, 12 Feb 2017 03:54:30 +0100 Original-Received: from localhost ([::1]:50500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cckJ6-0005cY-L8 for ged-emacs-devel@m.gmane.org; Sat, 11 Feb 2017 21:54:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55972) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cckIW-0005cP-4P for emacs-devel@gnu.org; Sat, 11 Feb 2017 21:53:57 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cckIU-0006bU-Ob for emacs-devel@gnu.org; Sat, 11 Feb 2017 21:53:56 -0500 Original-Received: from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243]:34708) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cckIR-0006ae-4O; Sat, 11 Feb 2017 21:53:51 -0500 Original-Received: by mail-pg0-x243.google.com with SMTP id v184so6270751pgv.1; Sat, 11 Feb 2017 18:53:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mail-followup-to:mime-version; bh=FM0uAMbGnwRokQidE4yv0Db9XAvw0j0scF301OglJMI=; b=jvZRrNxrOiRx5kRa46HjpnK3u/7mKyalfBJ6qAcohOSN7SY1K5FtQXKY0wy+NbeYUJ Eo1N2RAvx/0KZ1QnJlDxxPgcL3APPpv2ugesk186/Rks8eYbTaTkuRfM/q9ZDdKo8Njt /HmvHHR6sgqTfFKJVW9zblcjEVRT2DnjNv9/LJ8IEZ7PEdzm4Dg6E/R87CN3eVOPEzMg NM2PjYLtbdQ+RBZN+vVDnI226CJNw+gOeRutCKy8VHtT9gyZ0p+4P+ywiiIL3XHJP2kS +CSeTWZlZ87M5aD2afAmrfvBpt0qklGhse6EvlHubxTZ+FGqq4vs3I68jyrMk4imYzwr tVuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :references:user-agent:mail-followup-to:mime-version; bh=FM0uAMbGnwRokQidE4yv0Db9XAvw0j0scF301OglJMI=; b=JSJbMWBD1orO3X5sojtJ2El8ma/ja5DcTzp2ctj7eoUuWw0g0yTEVlJ9hv50QTylZq /nLqGssHdUI3Ir4wVrNq6HhwGUyBeocNRORffuGRO/yuklJk6UWDZHE1KLHvI0rfGRhY AgO8xp9DRSOaAa3F4cuuKyseQFdcl1/0wpF0/q7k8yTJd2sP5CoWWOjz/GSq+s6uFzZW UEGN3Mrum1f8DSTBugqG6W8GI+LaKsF4FKpjhhb7r7oOzAmsOyGYvkUBMVs3WDW9RQfv biNV22j31AykvRSFsiax+RJOEwCEmDkud0cKAsOxPJeRRe+0Gi7Fc3zGUT2gq5xKIZYi bdvA== X-Gm-Message-State: AMke39nk2ZYjVj8Eg3LtW/HnDxPsykZBJHzyalaNu2PSsj0lgQez0zJMPC5mnuJg8657/Q== X-Received: by 10.99.193.17 with SMTP id w17mr19526360pgf.124.1486868030028; Sat, 11 Feb 2017 18:53:50 -0800 (PST) Original-Received: from Vulcan.local (76-234-69-149.lightspeed.frokca.sbcglobal.net. [76.234.69.149]) by smtp.gmail.com with ESMTPSA id p15sm13098489pfk.58.2017.02.11.18.53.49 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 11 Feb 2017 18:53:49 -0800 (PST) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id 116FA18B574E; Sat, 11 Feb 2017 18:54:01 -0800 (PST) In-Reply-To: <8f9e68fc-4314-625d-b4bf-796c71c91798@yandex.ru> (Dmitry Gutov's message of "Mon, 6 Feb 2017 04:09:42 +0200") Mail-Followup-To: Dmitry Gutov , Alan Mackenzie , Eli Zaretskii , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c05::243 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.devel:212256 Archived-At: >>>>> "DG" == Dmitry Gutov writes: GD> One normally adds an alternative source of truth (i.e. a "cache") to fix a DG> significant performance problem, when one really can't do so otherwise. DG> It seems we agree now that comment-cache's existence can't be justified by GD> performance considerations. DG> Cache invalidation is a known hard problem in CS, so we generally don't GD> want to have extra caches. This argument right here is why I would vote against comment-cache: I'd rather have parens-in-comments-at-column-0 parsed incorrectly -- at least, until syntax-ppss is fixed -- than to add another cache just to fix this problem. Unless I've missed something... -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2