GNU bug report logs - #13949
24.3.50; `fill-paragraph' should not always put the buffer as modified

Previous Next

Package: emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Wed, 13 Mar 2013 22:11:01 UTC

Severity: wishlist

Tags: fixed

Merged with 21155

Found in versions 24.3.50, 24.4.1, 25.0.50

Fixed in version 26.1

Done: Lars Magne Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Eli Zaretskii <eliz <at> gnu.org>
To: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
Cc: 13949 <at> debbugs.gnu.org
Subject: bug#13949: 24.4.1; `fill-paragraph' should not always put the buffer as modified
Date: Mon, 28 Mar 2016 18:29:08 +0300
> From: Lars Magne Ingebrigtsen <larsi <at> gnus.org>
> Date: Mon, 28 Mar 2016 13:27:49 +0200
> 
> I've now made a simple buffer hashing function (that does not take text
> properties into account) to see how slow this would be.
> 
> The following form
> 
> (with-temp-buffer
>   (dotimes (i 10000)
>     (insert (make-string 100 ?k) "\n"))
>   (benchmark-run 1000 (buffer-hash)))
> 
> takes 2.7 seconds (that's 1000 1MB buffers), and unsurprisingly
> 
> (with-temp-buffer
>   (dotimes (i 10000000)
>     (insert (make-string 100 ?k) "\n"))
>   (benchmark-run 1 (progn (message "%s" (buffer-size) (buffer-hash)))))
> 
> (which is 1 1GB buffer) takes the same amount of time.  :-)
> 
> (This is on a 2.7GHz i5 from like five years ago.)

Optimized build or unoptimized?




This bug report was last modified 8 years and 166 days ago.

Previous Next


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