From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?ISO-8859-15?Q?Andreas_R=F6hler?= Newsgroups: gmane.emacs.help Subject: Re: Paredit, smartparens very slow with large latex files Date: Fri, 13 Sep 2013 08:30:31 +0200 Message-ID: <5232B107.9030502@easy-emacs.de> References: <87li31bxar.fsf@free.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1379053737 18109 80.91.229.3 (13 Sep 2013 06:28:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Sep 2013 06:28:57 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 13 08:28:57 2013 Return-path: Envelope-to: geh-help-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 1VKMsB-00075s-RG for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Sep 2013 08:28:55 +0200 Original-Received: from localhost ([::1]:44987 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKMsA-0001ph-T0 for geh-help-gnu-emacs@m.gmane.org; Fri, 13 Sep 2013 02:28:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43700) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKMrt-0001pc-3W for help-gnu-emacs@gnu.org; Fri, 13 Sep 2013 02:28:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VKMrl-0007Xd-PJ for help-gnu-emacs@gnu.org; Fri, 13 Sep 2013 02:28:37 -0400 Original-Received: from moutng.kundenserver.de ([212.227.126.171]:62945) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VKMrl-0007XT-Ff for help-gnu-emacs@gnu.org; Fri, 13 Sep 2013 02:28:29 -0400 Original-Received: from purzel.sitgens (brln-4dba6048.pool.mediaWays.net [77.186.96.72]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0LgeLl-1VhYc50ZHB-00niOW; Fri, 13 Sep 2013 08:28:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <87li31bxar.fsf@free.fr> X-Provags-ID: V02:K0:5ZwN9cz2WAZj20ZUpO5pvIdm7ufIbY0rKuDLov1nyTJ Xq940uX9VspiEUibxhr5xqBqmxmtpafw4iYk+rlH5BLT2i3H5I 97Tsb0uaqHjSdy7B+7dtok7LBn+KIRPBMvar/AiKhyFva7U2Dm rYb4u8bk7+UJ1TwvaPEtZ7gZk3bvjCna4rntWpNPlT6yuwQkn1 k8krfHZwizxeBkFPu3gB9AYILAunhfwaDqNDeoRZXoHLUpCTwx ztxcZH+X4bd/3Qir0XUS7pxeByQ2MMYBNc7z8b6WLptIZKlD3C y3k2rzoo1QzQGeKJWHhc2Is1IH/RhEV+WnFZf2mwvnJxLTgCXC /8EfO7+PMWQ9G8PRrUus= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.126.171 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93374 Archived-At: Am 12.09.2013 22:27, schrieb Julien Cubizolles: > Vilibald Wanca writes: > >>> All the minor modes I've tried to navigate through sexps are very slow >>> when working with large latex files (>1000 lines). For example >>> sp-forward-sexp takes several seconds to do the following: >>> \(|\) -> \(\)| whereas it's instantaneous in a small buffer. Is there a >>> way to improve things ? I tried folding parts of the buffer but it >>> doesn't help since the folded part is still parsed. >> >> What about buffer narrowing, have you tried it? > > It doesn't seem to help. > These commands must scan-lists in order to find the end or beyond. Therefor they usually do (save-restriction (widen)... inside, so narrowing locally has no effect.