From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Some performance questions. Date: Wed, 8 Feb 2023 20:08:19 +0100 Message-ID: <20230208190819.z7xwgxm5gpbzmjrz@Ergus> References: <20230208190819.z7xwgxm5gpbzmjrz.ref@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5304"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Feb 08 20:09:17 2023 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 1pPpoj-0001Hd-DH for ged-emacs-devel@m.gmane-mx.org; Wed, 08 Feb 2023 20:09:17 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pPpo1-0006qn-3k; Wed, 08 Feb 2023 14:08:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pPpny-0006qH-UP for emacs-devel@gnu.org; Wed, 08 Feb 2023 14:08:30 -0500 Original-Received: from sonic311-14.consmr.mail.bf2.yahoo.com ([74.6.131.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pPpnw-0002ao-0y for emacs-devel@gnu.org; Wed, 08 Feb 2023 14:08:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1675883303; bh=9x+BcgHQNrpeD22h2ZpSs5LPRykKgzA9sOCv8wvBh44=; h=Date:From:To:Cc:Subject:References:From:Subject:Reply-To; b=onImKnW2zCBW47CylNEOLQaZq6zJcyMeqJ/Mzezofr9VefPN4xwUcM9vyeWhPyCRxrL1kxoRQhaAwb2P+rrJbeBCRXaiwTyQyNAlPBg34PuZ77F14afZ+WP5CHzFclcjYSBP7J0SKedguRBGu8HkSzsmctjvIKDwT3TP6AwrHfcOH4zXi9YmK7+H8TTVhTBDohG631jcHAqSVHOS/AplQgU9migoAu7GQfNRULPTpXsbvI+GzRpMYRjQmvFJxic5Yrs7K53RDsabePLpjyY4XqfnmiMBcp6WiWd+TmB34QG14TzlFXp6NwElOyIS3+Kn7R2ZVTVkix9nYtiCx/tRKA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1675883303; bh=DIl6RXpy66eDUlnOzMC42noH3DcxtP1fgmV5ayv9f9a=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=NajJZHS+9hCZCBzZrLAPuzm8a3pvAdbnZJropWrzk8Rg3W3GhYm5crMFjLMLwCnzqwRLDYv9hAE7yRMZJf3yJcuDr+J7X4BX6eHn1M+qnEw+VUrLxZijW5bIRv+wpTmMFI+ubwjrY9da4FVZgagHQmgJdZZvofD2k75DezKekxrdtgpdLfR/d2B8qsTmbiYed4UH5T1rv9QLeF/OY1G8GsQxYskN19UQfa1+QF7BDyUL4aEhBydIPuSrGGSxjS0MyfvdLz3i1tJL9UE1+Xh65XDLwJe51IvnpFSAn052j+cNvVa41f5A7OKIbw/vI8ZpqQcaEvVYLUuI1o7YfU2Btw== X-YMail-OSG: YBLaL5UVM1mSGBRYzZ9OvWdscYf_TUVGTE5J_wYg7y_EHhuk6UO78rSVxHT26RC Dxmn2L4XNrC8iLsm4sUsYGcvJE9BSmUB_NrAmgtbxoMWBCoMr2TSsKuBecqIgzQkCFvSCGOAp4o7 MEHu6FQtHgiIp6FN0e5vtzdilf22Qg8NVURENNYRy3Oqq3VPM11FAgcFBXiIYb7LJmNE68tBbWwz hu0aGzGCyvMkt2bNaWGCTJe9fGDFLftWXE5iHJdp20kEkzIefvlZO1y6dda3ZyF8sKBBWqUB58cs _6Xmv8z5S3kT_12OuacOLbDEi6o8nFx.emfvFIcsBM_wzq883_xGiEzgnydSEWQ9ynOlEgCgviTi _KVT9AAe3A8hYwpZN0gNMT7zbbKnv1W.lo_4grUUDkJWLa.9_yKvvTV4XVfIuwU381SWMr5OA8PT 1m65X2mjjlXTBNssaPyNrcQHNYN62WiZ.7Erv6cTqSFoErhlgkWVux3nDwDGnrZqN2LkDwQBTGjA ybOzXE_JZgIlAByR1CRvR0yrBPORHNgfCdbuAZjIrIgpaJ6eYzDkhUcW.n2Q.G0V5869PtMolwRn 0ATQgug8GgILF20Zs90keTiRS5gllDPPs75d1POdLvezf3LHTZW7e08cElLdAlNT6iC5uhx2uop6 LSipudDJuC1yXO_3aW2lqmUNxkjVTMj65V9mqhIRlkIToQTqG.UZx2kYfkUZ8sLUcBCWbq2Wlnmq nR4L.bPJlpHHpadSpRsNGjEAstGaZ6iEbfNKKLX9zktdE1kw.GSez0PALFGmgrF6m2pR4deqfApp xvSV6lQm4cc5DFk.QOkCOqIROA7We7TqFL39J4sE_d X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.bf2.yahoo.com with HTTP; Wed, 8 Feb 2023 19:08:23 +0000 Original-Received: by hermes--production-ir2-65c64dfd66-q2fgd (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 592321f6489337b1648baab795844f1b; Wed, 08 Feb 2023 19:08:21 +0000 (UTC) Content-Disposition: inline X-Mailer: WebService/1.1.21161 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.131.124; envelope-from=spacibba@aol.com; helo=sonic311-14.consmr.mail.bf2.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:303055 Archived-At: Hi: I have been forced to use emacs in MS-Windows and after some days tweaking and trying I have some comments I am not sure if they are intended, known or issues. So, I ask before creating a bug report. I am making this comments now because I have exactly the same config on GNU/Linux and I don't have any issue. 1) I observed important lags and delays interactively (moving cursor, scrolling or just editing simple C++ code). I ran the profiler and I found that 50% of the time was consumed by flycheck's hooks. As I know flycheck is not our business, I disabled it and continued. 2) While much better; there is still a very annoying lag. If I type fast, the letters don't appear in the screen immediately, but come all together after a while. Again profile-start and this time I found that in a simple test like editing (type, delete words, write functions), 35% of the time was consumed by the garbage collection (Automatic GC) and other 35% by flyspell. - So I checked the gcs-done variable and the value was not specially different than same test on GNU/Linux.. but the time percent was much higher. - I disabled the flyspell for the moment as I have no other choice. 3) Now, in spite of it is much better, still there is a significant lag (compared with GNU/Linux) which concerns me about whats going on with the GC. Now I get in the profiler-report: 71 45% Automatic GC 68 43% redisplay_internal jit-lock-function ... font-lock-fontify-keywords-region 37 23% c-font-lock-declarations 20 12% c-font-lock-cut-off-declarators I have not observed such lags before on GNU/Linux, so some idea what I may be doing wrong? I know Eli uses MS-Windows frequently, so, any hint? Thanks in advance, Ergus