From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: [RFC]: replace-region-contents Date: Tue, 05 Feb 2019 18:19:13 +0100 Message-ID: <87k1iew3u6.fsf@gnu.org> References: <871s4rqk7u.fsf@gnu.org> <87o97syvno.fsf@gnu.org> <878syubwv3.fsf@gnu.org> <87y36u9xqt.fsf@gnu.org> <83k1ietcox.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="187198"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: monnier@IRO.UMontreal.CA, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 05 18:48:28 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gr4pf-000mZ5-Ow for ged-emacs-devel@m.gmane.org; Tue, 05 Feb 2019 18:48:27 +0100 Original-Received: from localhost ([127.0.0.1]:35884 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gr4pe-0002z6-Ij for ged-emacs-devel@m.gmane.org; Tue, 05 Feb 2019 12:48:26 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:42559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gr4Pa-0006uD-11 for emacs-devel@gnu.org; Tue, 05 Feb 2019 12:21:30 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:45133) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gr4PY-0004Ja-Ux; Tue, 05 Feb 2019 12:21:28 -0500 Original-Received: from auth2-smtp.messagingengine.com ([66.111.4.228]:49907) by fencepost.gnu.org with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.82) (envelope-from ) id 1gr4PX-0000Ds-TF; Tue, 05 Feb 2019 12:21:28 -0500 Original-Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailauth.nyi.internal (Postfix) with ESMTP id 1E4A021FED; Tue, 5 Feb 2019 12:19:17 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Tue, 05 Feb 2019 12:19:17 -0500 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedtledrkeeigdeliecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfhuthenuceurghilhhouhhtmecufedt tdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvufhfffgjkf gfgggtsehttdertddtredtnecuhfhrohhmpefvrghsshhilhhoucfjohhrnhcuoehtshgu hhesghhnuhdrohhrgheqnecuffhomhgrihhnpehjshhonhdqghgvnhgvrhgrthhorhdrtg homhdpghhoohhglhgvrdgtohhmnecukfhppeelfedrvdefiedruddvledrhedvnecurfgr rhgrmhepmhgrihhlfhhrohhmpehthhhorhhnodhmvghsmhhtphgruhhthhhpvghrshhonh grlhhithihqdekieejfeekjeekgedqieefhedvleekqdhtshguhheppehgnhhurdhorhhg sehfrghsthhmrghilhdrfhhmnecuvehluhhsthgvrhfuihiivgeptd X-ME-Proxy: Original-Received: from thinkpad-t440p (p5dec8134.dip0.t-ipconnect.de [93.236.129.52]) by mail.messagingengine.com (Postfix) with ESMTPA id 75C65E412F; Tue, 5 Feb 2019 12:19:15 -0500 (EST) In-Reply-To: <83k1ietcox.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 05 Feb 2019 18:36:14 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:233007 Archived-At: Eli Zaretskii writes: >> I just became aware of the fact that we cannot use >> `replace-buffer-contents' in its current state if the replacement is >> too large. It becomes unbearable slow. > > In what version of Emacs? I think it was slow in 26.1, but wa ssped > up significantly since then. Master as of today. > If you are using emacs-26 or the master branch from Git, and it is > still slow, can you show an example where it's slow, and tell how much > time it took? I prepared a tar.xz with a synthetic, huge, one-line JSON file generated by https://next.json-generator.com and a lisp file benchmarking the current against my proposed version of `json-pretty-print'. https://drive.google.com/open?id=1kKahq3csBVXWL-nN1-eMhgDctGWBN1AR Bye, Tassilo