From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: taylanbayirli@gmail.com (Taylan Ulrich =?utf-8?Q?Bay=C4=B1rl=C4=B1?= =?utf-8?Q?=2FKammer?=) Newsgroups: gmane.emacs.devel Subject: Re: Emacs rewrite in a maintainable language Date: Sat, 17 Oct 2015 23:22:27 +0200 Message-ID: <87a8rhur58.fsf@T420.taylan> References: <561A19AB.5060001@cumego.com> <87oag4jk74.fsf@wanadoo.es> <87k2qrki45.fsf@wanadoo.es> <8737xf9je9.fsf@fencepost.gnu.org> <87pp0fm0j3.fsf@gnu.org> <87r3kusx8z.fsf@fencepost.gnu.org> <83lhb26eb9.fsf@gnu.org> <876126key3.fsf@gnu.org> <83fv1a6bfu.fsf@gnu.org> <87d1weo7u9.fsf@gnu.org> <83zizi3qr0.fsf@gnu.org> <87lhb1n81y.fsf@gnu.org> <87a8rhqzdd.fsf@fencepost.gnu.org> <871tctxy1a.fsf@T420.taylan> <87twpppgtq.fsf@fencepost.gnu.org> <87bnbxwgd3.fsf@T420.taylan> <87d1wdpf1c.fsf@fencepost.gnu.org> <87pp0duyxk.fsf@T420.taylan> <838u714897.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1445116958 2856 80.91.229.3 (17 Oct 2015 21:22:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Oct 2015 21:22:38 +0000 (UTC) Cc: ludo@gnu.org, dak@gnu.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 17 23:22:38 2015 Return-path: Envelope-to: ged-emacs-devel@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 1ZnYw1-0005m2-KM for ged-emacs-devel@m.gmane.org; Sat, 17 Oct 2015 23:22:37 +0200 Original-Received: from localhost ([::1]:59801 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnYw1-0005DW-19 for ged-emacs-devel@m.gmane.org; Sat, 17 Oct 2015 17:22:37 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnYvw-0005BV-Qx for emacs-devel@gnu.org; Sat, 17 Oct 2015 17:22:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZnYvv-00018a-VK for emacs-devel@gnu.org; Sat, 17 Oct 2015 17:22:32 -0400 Original-Received: from mail-wi0-x22c.google.com ([2a00:1450:400c:c05::22c]:35725) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZnYvv-00018W-PI; Sat, 17 Oct 2015 17:22:31 -0400 Original-Received: by wicll6 with SMTP id ll6so49934588wic.0; Sat, 17 Oct 2015 14:22:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type:content-transfer-encoding; bh=27G1Gy8ubjFsRdeYGGxqrMV3OQjFy0wiqykW05VVNd8=; b=GxarLGdT981BYJ2z1RqTcDOI/pwemQbraMc/8AN7fiNWZMlLiURMzEH56UCqHnC2Nu r6fUA1E6woZtOAm9W/wJzR7mqQDg4Eeaf+0lNCbAcTwQCATrBirht9tnawVkMcuTxlr/ ePlN5Krh3oKdDwXzjWWDrXDt0A9R2ph1cwvgAI5PeCx63yUiIiFbWZXh+zaTlszMjTX/ PwhRU4aPVn4J6mBfxq/UbLpj45knriVGOODoYdHDZQtFnjYUiHNC16o5ImRRW5lLjF8w z/DTk3+0dXKeKHWYQj9uMNSCtzOwopDu1vhiKzOamcrX+Pc8qQWhrtkK7VRNdk/6izb6 FSpg== X-Received: by 10.180.206.52 with SMTP id ll20mr11753938wic.48.1445116951177; Sat, 17 Oct 2015 14:22:31 -0700 (PDT) Original-Received: from T420.taylan ([2a02:908:c32:4740:221:ccff:fe66:68f0]) by smtp.gmail.com with ESMTPSA id fz2sm8503632wic.2.2015.10.17.14.22.29 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Oct 2015 14:22:29 -0700 (PDT) In-Reply-To: <838u714897.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 17 Oct 2015 22:15:00 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:191885 Archived-At: Eli Zaretskii writes: >> From: taylanbayirli@gmail.com (Taylan Ulrich Bay=C4=B1rl=C4=B1/Kammer) >> Cc: Ludovic Court=C3=A8s , Eli Zaretskii >> , emacs-devel@gnu.org >> Date: Sat, 17 Oct 2015 20:34:15 +0200 >>=20 >> > Most relevant candidates are likely file load/save, string display and >> > stuff like regexp searches through buffers. >>=20 >> Opening a 30 MB IRC log file takes the same amount of felt time as on >> upstream Emacs. Saving it too. > > Can you time both and show the exact timings? > > Also, the file should not be plain ASCII (and probably not UTF-8, > either), so that decoding the text is included in the comparison. > >> (while (re-search-forward "taylan" nil t) (ignore)) in the same file is >> pretty much instant on both. > > Once again, please show exact timings. "Pretty much instant" could be > 0.01 sec vs 0.02 sec, which is still twice slower. Timing things mechanically is difficult when GuileEmacs takes so much longer to boot. The slow-downs in GuileEmacs are generally of the nature that cause slowness of orders of magnitude (i.e. very obvious bugs) and I'm already pretty sure that GuileEmacs simply uses existing Elisp string/buffer functionality, so I was merely trying to prove that. I now created a 300 MiB file with data from /dev/urandom and they still both take the same amount of time to open it, which is about 3 seconds, and scrolling through the file, using Isearch, etc. all works fine. I hope that's convincing enough. There are currently some grave performance issues in GuileEmacs, but they aren't related to string/buffer handling, because it simply uses the existing C code there. Taylan