From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Crashes in "C-h h" Date: Thu, 04 Jul 2019 16:05:58 +0300 Message-ID: <83ef36ar0p.fsf@gnu.org> References: <83y31hes6r.fsf@gnu.org> <83r279epwe.fsf@gnu.org> <09f72051-d740-9115-c6fd-c4344c749568@cs.ucla.edu> <83muhvd9nm.fsf@gnu.org> <9b78b85d-a3c8-761f-e500-d51d4a985fa8@cs.ucla.edu> <83k1cybk8c.fsf@gnu.org> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="55975"; mail-complaints-to="usenet@blaine.gmane.org" Cc: pipcet@gmail.com, emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 04 15:08:37 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.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hj1TZ-000EPk-BV for ged-emacs-devel@m.gmane.org; Thu, 04 Jul 2019 15:08:37 +0200 Original-Received: from localhost ([::1]:45650 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hj1TY-0002xJ-DN for ged-emacs-devel@m.gmane.org; Thu, 04 Jul 2019 09:08:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45565) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hj1RG-0001Xj-E0 for emacs-devel@gnu.org; Thu, 04 Jul 2019 09:06:16 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:57434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hj1RF-0006ZZ-VD; Thu, 04 Jul 2019 09:06:14 -0400 Original-Received: from [176.228.60.248] (port=1905 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1hj1RA-00041U-4z; Thu, 04 Jul 2019 09:06:13 -0400 In-reply-to: (message from Paul Eggert on Thu, 4 Jul 2019 00:15:12 -0700) 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:238349 Archived-At: > Cc: pipcet@gmail.com, emacs-devel@gnu.org > From: Paul Eggert > Date: Thu, 4 Jul 2019 00:15:12 -0700 > > 1030-lnxsrv09 $ time ./a.out 0 0 > > real 0m51.933s > user 0m51.927s > sys 0m0.001s > 1031-lnxsrv09 $ time ./a.out 0 0 0 > > real 2m16.960s > user 2m16.960s > sys 0m0.000s > 1032-lnxsrv09 $ time ./a.out 0 0 0 0 > > real 0m59.678s > user 0m59.677s > sys 0m0.001s Thanks. > This indicates that on this !USE_LSB platform, the EQ+make_fixnum code is about > ten times faster than the FIXNUMP+XFIXNUM code on this benchmark. You mean twice faster (~2m vs ~1m), right? > I'm not surprised by the performance disparity, as branch-prediction > failures can be pretty expensive. Which indeed means that if the object is not guaranteed to be a fixnum, using XFIXNUM is generally suboptimal.