bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#64391: buffer narrowing slowdown regression in emacs 29


From: Mattias Engdegård
Subject: bug#64391: buffer narrowing slowdown regression in emacs 29
Date: Sun, 2 Jul 2023 11:37:53 +0200

How expensive markers can be when a buffer is modified is often unappreciated. 
Here are the results of a benchmark to illustrate the cost (code attached).
A buffer contains "abababab...", we optionally add a marker to every other 
position, and then time the deletion of all the "a"s. Results:

|   size | without markers | with markers |
|--------+-----------------+--------------|
|    500 |           0.000 |        0.001 |
|   1000 |           0.001 |        0.004 |
|   5000 |           0.002 |        0.089 |
|  10000 |           0.005 |        0.363 |
|  50000 |           0.024 |        9.527 |
| 100000 |           0.049 |       58.048 |

Now there's something for the curve-fitters among you.

Attachment: abench4.el
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]