GNU bug report logs -
#31888
27.0.50; Segmentation fault in replace-buffer-contents
Previous Next
Reported by: Michał Kondraciuk <k.michal <at> zoho.com>
Date: Mon, 18 Jun 2018 21:00:04 UTC
Severity: normal
Found in version 27.0.50
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #22 received at 31888 <at> debbugs.gnu.org (full text, mbox):
> From: João Távora <joaotavora <at> gmail.com>
> Cc: eliz <at> gnu.org, k.michal <at> zoho.com
> Date: Mon, 25 Jun 2018 11:49:58 +0100
>
> I'm using this function in my Eglot package, but only because of its
> ability to preserve markers, not text properties. And only one marker in
> particular, the point marker. So I wonder if sth like a
> replace-buffer-contents-no-properties could be added: according to your
> analysis it could be significantly faster.
I doubt that, because keeping markers needs the same technique:
deletions interspersed with insertions, where both deletions and
insertions are as small as possible.
However, I'm working on profiling this command with better
granularity, so maybe I will have additional ideas for speeding it up.
(You should only see the slowness if there are a lot of small
differences scattered all over the buffers. A few large differences
close together should let the function's optimized algorithm to do a
better job.)
This bug report was last modified 6 years and 325 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.