From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.devel Subject: Re: Speedup of display of long and truncated lines Date: Sun, 21 Aug 2022 14:22:15 +0300 Message-ID: References: <83edxkmdy3.fsf@gnu.org> <66bbbb9598b1b1ce66d2@heytings.org> <8335e0m9zp.fsf@gnu.org> <66bbbb95989005dd3e92@heytings.org> <8335dsg22h.fsf@gnu.org> <37dd2827f51f1d25e9ce@heytings.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19376"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Cc: emacs-devel@gnu.org To: Gregory Heytings , Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Aug 21 13:24:20 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oPj40-0004se-7G for ged-emacs-devel@m.gmane-mx.org; Sun, 21 Aug 2022 13:24:20 +0200 Original-Received: from localhost ([::1]:54506 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oPj3y-0006eP-MK for ged-emacs-devel@m.gmane-mx.org; Sun, 21 Aug 2022 07:24:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:34030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPj2O-000598-9f for emacs-devel@gnu.org; Sun, 21 Aug 2022 07:22:40 -0400 Original-Received: from mail-wr1-x432.google.com ([2a00:1450:4864:20::432]:41640) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oPj2J-0004Ro-UI; Sun, 21 Aug 2022 07:22:40 -0400 Original-Received: by mail-wr1-x432.google.com with SMTP id h24so10032969wrb.8; Sun, 21 Aug 2022 04:22:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc; bh=fkp2lwYrhYqZJAuo/f2LVwvFm66j6PpUcIG8PqGxYss=; b=lBsabVvV9fbXNdItuZJLzJTKqI7y4onoOuhA6tvbvR4JQ9/OT3C/Cke9QJB37KiU9x 84tug4556HuYZdW+ay80aWPVZuFwp9Xic/BmKEd/ieGUgB+FTzX4p3ME+X9r8tNs1aNs ULuKoOUlQIiHmPS9lMfVNa/g2hhyYArbKs8K/frcAnsTXHaDzZ2kFywxTtWBhGibGU9q kAmYgr3XARNwZWeO1uIZQ4uOzqIOBqQZ/WRlDG+KT42/vnyuwxIfgI9QhWydqfhO5XKB VNrZNw4C+yokwDvimGtVVtLbL3BmhbJIj2O+WPLEGkkciMv9WpLWZXBu30YYhIAshAGl j81w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc; bh=fkp2lwYrhYqZJAuo/f2LVwvFm66j6PpUcIG8PqGxYss=; b=0VooslStsak/1VOSbBrm7tz2zH8AOYXnAangOK42mFOsofqOC7V9hniNZPWfYggvLh 9Vv8EEP0CXn4oySXm1jXIhVozTD66lCwbLOxQ2QOgFlMgQbbupYDETZCmuoQEoYxaXNf 095GFo3oaYPZaEVmIcP6dAxO4o1/rFlcQEFjsubyHbZMIpk98dgSxZZWoFJc5jObxlLV U6AuajQnwQzEjauTKRPBiyOMdIsecYIXbyXgYQ1W6IayEuX2vgJdQJshlDqtb3+17aQj nF7VLhUHRt83FXpMVveX5GeaibWGJbot5ol/fH9VsvHjjnCTeMVRm6dpE803sCzvRvUI r+NA== X-Gm-Message-State: ACgBeo3V9xPpTYsdwz4J7onh1sAr7MPhONKntO5vrJkdVjjELTozslng 70/dmaPKRW7rd0CCPcWRa5xrhE/ogE0= X-Google-Smtp-Source: AA6agR6B2LoNYN3jGbhKlf38flkMhjx/WAxgUOAdOfGJcq6NoO+JZTvVO5MgikVBjyPrDvIROIl5pw== X-Received: by 2002:adf:f5c4:0:b0:223:9ece:8378 with SMTP id k4-20020adff5c4000000b002239ece8378mr7954787wrp.507.1661080937185; Sun, 21 Aug 2022 04:22:17 -0700 (PDT) Original-Received: from [192.168.0.6] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id o14-20020adfcf0e000000b0021f1ec8776fsm8889577wrj.61.2022.08.21.04.22.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 21 Aug 2022 04:22:16 -0700 (PDT) Content-Language: en-US In-Reply-To: <37dd2827f51f1d25e9ce@heytings.org> Received-SPF: pass client-ip=2a00:1450:4864:20::432; envelope-from=raaahh@gmail.com; helo=mail-wr1-x432.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:293687 Archived-At: On 20.08.2022 19:22, Gregory Heytings wrote: > >>> #!/bin/bash >>> for i in $(seq 1 $1) >>> do >>>    echo -n "INSERT INTO TABLE_$i VALUES " >>>    for j in $(seq 1 $2) >>>    do >>>      echo -n "(10,'100','QWERTY','Foo Bar Baz',50,4852,$j)" >>>      (($j == $2)) && echo -n ';' || echo -n ',' >>>    done >>>    echo >>> done >> >> Which major mode is used for visiting such files? >> > > sql-mode FWIW, my brief testing seems to show sql-mode's font-lock has similar performance to js-json-mode. Maybe like 1.5x slower in syntax-ppss (due to syntax-propertize-function being present), but that's it. Tested with font-lock without narrowing, of course.