GNU bug report logs - #28625
[PROPOSED] Speed up (format "%s" STRING) and the like

Previous Next

Package: emacs;

Reported by: Paul Eggert <eggert <at> cs.ucla.edu>

Date: Wed, 27 Sep 2017 18:53:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #11 received at 28625 <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: John Wiegley <jwiegley <at> gmail.com>
Cc: 28625 <at> debbugs.gnu.org
Subject: Re: bug#28625: [PROPOSED] Speed up (format "%s" STRING) and the like
Date: Wed, 27 Sep 2017 13:11:48 -0700
On 09/27/2017 01:00 PM, John Wiegley wrote:
> Is the performance gain worth the change?

It is for applications that heavily use 'format' with the optimized 
cases. For example, on my old desktop (AMD Phenom II X4 910e), the 
proposed patch speeds up the microbenchmark (format "%s" "Hello, 
world!") by a factor of 9. It also causes Emacs to use less RAM, though 
this is harder to measure.

Also, the change simplifies the Emacs source code, and that's a win even 
if the performance gain is small.





This bug report was last modified 7 years and 282 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.