From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs's set-frame-size can not work well with gnome-shell? Date: Wed, 22 Jan 2020 17:55:29 +0200 Message-ID: <83blqvv632.fsf@gnu.org> References: <6a08dc66.3510.16fcc47e442.Coremail.tumashu@163.com> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="110753"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rudalics@gmx.at, emacs-devel@gnu.org, tumashu@163.com, dgutov@yandex.ru To: tumashu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Jan 22 16:56:10 2020 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 1iuIMT-000SlX-58 for ged-emacs-devel@m.gmane-mx.org; Wed, 22 Jan 2020 16:56:09 +0100 Original-Received: from localhost ([::1]:43696 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuIMS-0004Cc-7z for ged-emacs-devel@m.gmane-mx.org; Wed, 22 Jan 2020 10:56:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41878) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iuILv-0003lJ-4f for emacs-devel@gnu.org; Wed, 22 Jan 2020 10:55:36 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:39265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iuILt-00038n-To; Wed, 22 Jan 2020 10:55:33 -0500 Original-Received: from [176.228.60.248] (port=2982 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iuILb-00016x-5K; Wed, 22 Jan 2020 10:55:27 -0500 In-reply-to: <6a08dc66.3510.16fcc47e442.Coremail.tumashu@163.com> (message from tumashu on Wed, 22 Jan 2020 16:04:21 +0800 (CST)) 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.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:244502 Archived-At: > Date: Wed, 22 Jan 2020 16:04:21 +0800 (CST) > From: tumashu > Cc: "emacs-devel@gnu.org" > > Today I test lucid emacs again, maybe the slowness is posn-at-point > > (benchmark 1000 '(posn-at-point (point))) > > "Elapsed time: 0.684959s" That's 0.7 msec per call. Is that really an issue? In any case, the performance of posn-at-point depends heavily on what's in the buffer, and even on how close point is to the beginning of the window. So testing the speed in a single window with a single position of point is not really representative of what can happen elsewhere.