From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Phil Sainty Newsgroups: gmane.emacs.devel Subject: Re: Performance degradation from long lines Date: Fri, 26 Oct 2018 15:39:33 +1300 Message-ID: <1892e3a5b684cf3a822aaf1c78544a99@webmail.orcon.net.nz> References: <665d5f3d84c071632f87f66ffedb6aed@webmail.orcon.net.nz> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1540521999 10338 195.159.176.226 (26 Oct 2018 02:46:39 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 26 Oct 2018 02:46:39 +0000 (UTC) User-Agent: Orcon Webmail Cc: emacs-devel@gnu.org To: mithraeum Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Oct 26 04:46:35 2018 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 1gFs8w-0002ax-TU for ged-emacs-devel@m.gmane.org; Fri, 26 Oct 2018 04:46:35 +0200 Original-Received: from localhost ([::1]:57780 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFsB3-00015K-Hy for ged-emacs-devel@m.gmane.org; Thu, 25 Oct 2018 22:48:45 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFsAu-0000MH-Jr for emacs-devel@gnu.org; Thu, 25 Oct 2018 22:48:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFs2E-0005ix-LP for emacs-devel@gnu.org; Thu, 25 Oct 2018 22:39:41 -0400 Original-Received: from smtp-4.orcon.net.nz ([60.234.4.59]:37040) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFs2E-0005dl-AF for emacs-devel@gnu.org; Thu, 25 Oct 2018 22:39:38 -0400 Original-Received: from [10.253.37.70] (port=38356 helo=webmail.orcon.net.nz) by smtp-4.orcon.net.nz with esmtpa (Exim 4.86_2) (envelope-from ) id 1gFs29-0001Jv-4N; Fri, 26 Oct 2018 15:39:33 +1300 Original-Received: from wlgwil-nat-office.catalyst.net.nz ([202.78.240.7]) via [10.253.37.253] by webmail.orcon.net.nz with HTTP (HTTP/1.1 POST); Fri, 26 Oct 2018 15:39:33 +1300 In-Reply-To: X-Sender: psainty@orcon.net.nz X-GeoIP: -- X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 60.234.4.59 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:230676 Archived-At: On 2018-10-26 14:46, mithraeum wrote: > I tried out so-long's wip branch on the same files I tested > longlines.el on, and here are the results: Thanks for testing. > Then I tried opening the 663K minified JSON file with 671209 > characters on one line. It took a little over 4 minutes to open. There are some fairly conservative default thresholds configured at present. In particular, `so-long-max-lines' is currently set to 5, meaning that, following any initial comments/whitespace, only the first 5 lines will be checked. I would guess that in the case of this second file, the long lines did not occur until after that default threshold? Check M-x customize-group so-long for config options. I am completely open to changing the default values. I have never had a firm idea of what they should be set to by default. -Phil