From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: cc-mode fontification feels random Date: Fri, 04 Jun 2021 14:22:43 +0300 Message-ID: <83o8clvpq4.fsf@gnu.org> References: <831r9iw473.fsf@gnu.org> <87h7ieyma7.fsf@gmail.com> <83wnr9vrpj.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="25518"; mail-complaints-to="usenet@ciao.gmane.io" Cc: p.stephani2@gmail.com, dancol@dancol.org, theo@thornhill.no, ubolonton@gmail.com, emacs-devel@gnu.org To: =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jun 04 13:23:30 2021 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 1lp7vF-0006Uu-KP for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Jun 2021 13:23:29 +0200 Original-Received: from localhost ([::1]:50544 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lp7vE-0006iU-3D for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Jun 2021 07:23:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35664) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lp7ue-00063c-31 for emacs-devel@gnu.org; Fri, 04 Jun 2021 07:22:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:52916) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lp7ud-0002rX-Qz; Fri, 04 Jun 2021 07:22:51 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4243 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lp7ud-0002l0-DY; Fri, 04 Jun 2021 07:22:51 -0400 In-Reply-To: (message from =?utf-8?B?Sm/Do28gVMOhdm9yYQ==?= on Fri, 4 Jun 2021 12:05:18 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:270382 Archived-At: > From: João Távora > Date: Fri, 4 Jun 2021 12:05:18 +0100 > Cc: Eli Zaretskii , ubolonton@gmail.com, > Daniel Colascione , theo@thornhill.no, emacs-devel > > > > The communication of buffer contents to these agents/servers is indeed > > > one aspect of the existing packages (those I had time to look at) that > > > I personally am unhappy about. Sending the whole buffer or its large > > > chunks down the wire as buffer-substring (which requires encoding to > > > be correct) is non-scalable, especially if it also requires conversion > > > to JSON. > > > > How bad is is actually; are there good numbers on this? > > Not from me. Only gut feeling. But I have seen latency from servers before. > That just depends on the server and its architecture, I guess. > > However there are reports of enormous latency on Emacs side when JSON > messages get very long and complex. Part of this related simply to JSON > parsing and allocation of lots of lisp objects. My hunch is that > fontification of > a big and complex buffer would give rise to one of these big and complex > JSON messages. Ask Dmitry about performance problems with native JSON support, and the effort we invested (a year ago?) into optimizing UTF-8 encoding of strings, to squeeze every last percent of performance.