From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?QW5kcmVhcyBSw7ZobGVy?= Newsgroups: gmane.emacs.help Subject: Re: Paredit, smartparens very slow with large latex files Date: Wed, 11 Sep 2013 17:58:32 +0200 Message-ID: <52309328.1050106@easy-emacs.de> References: <87ioy7vfv1.fsf@free.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1378915033 16235 80.91.229.3 (11 Sep 2013 15:57:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Sep 2013 15:57:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Sep 11 17:57:16 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 1VJmn4-00041T-GD for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Sep 2013 17:57:14 +0200 Original-Received: from localhost ([::1]:36759 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJmn3-0000FI-SZ for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Sep 2013 11:57:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJmmZ-00005Y-H8 for help-gnu-emacs@gnu.org; Wed, 11 Sep 2013 11:56:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VJmmS-0005vm-2y for help-gnu-emacs@gnu.org; Wed, 11 Sep 2013 11:56:43 -0400 Original-Received: from moutng.kundenserver.de ([212.227.17.9]:62284) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VJmmR-0005ve-P8 for help-gnu-emacs@gnu.org; Wed, 11 Sep 2013 11:56:35 -0400 Original-Received: from purzel.sitgens (brln-4dba21f1.pool.mediaWays.net [77.186.33.241]) by mrelayeu.kundenserver.de (node=mreu2) with ESMTP (Nemesis) id 0MLkAx-1VKbrN1N2p-000YUL; Wed, 11 Sep 2013 17:56:34 +0200 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130801 Thunderbird/17.0.8 In-Reply-To: <87ioy7vfv1.fsf@free.fr> X-Provags-ID: V02:K0:LqMd+rvkjp/+yd4N+mgv3mNLjYDoiu0Ef2KkAcMrmoJ D3j7M+3HzD+ndN5WZsmM+0oi7SpjEL/6piKJqF7ozNGGTIXIgC LWWvDnxogf64FtGr3hFQeAQoW/N9prD5RGuqW3o5Q2uA7lWKUd PaTCo8hVX9zd/3VYTAUfPleseLnFuqGVIYc9Oh8ZCyJPlDE6Hv Z+BghaKg1kVK3ABH3EwCC50k1xDy2pbpLtFZM2UMToewdrY439 vyQC5xgbnh2iDbqD21pbrPBt1hO/UxV7MIVmnAZJL6qlNj6MI3 hmH5UGV3kD/nn9Tauiv6I/ws4NO2PqWguTNluS57bymYYNvwIe CThv37gaN6WF2PlWW6C6xzuhhW2jo2lE//SOkPCBA X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.17.9 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:93331 Archived-At: Am 11.09.2013 11:59, schrieb Julien Cubizolles: > 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. > > Julien. > > > IMO basically exist two sources for the problem. a) an appropriate coding style. b) slowness from nesting, which might be solved by an appropriate alternative command. As for b, please tell if command from paredit.el is slow also. As for a, seeing a style expand, which uses a lot of abstractions, resp. refactoring. This looks nice, enhances readability but makes it slow very soon. Best, Andreas