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

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

bug#49127: Performance degradation in encode_coding_object


From: Eli Zaretskii
Subject: bug#49127: Performance degradation in encode_coding_object
Date: Mon, 16 Aug 2021 21:50:03 +0300

> From: Mattias Engdegård <mattiase@acm.org>
> Date: Mon, 16 Aug 2021 20:06:32 +0200
> Cc: victor.nawothnig@icloud.com, 49127@debbugs.gnu.org
> 
> > Yes.  Why do you think this loop is broken?
> 
> Because unless I misunderstood the code entirely, the current buffer has 
> nothing to do with the operation at hand.

It does, if both src_object and dst_object are the same (current)
buffer.

> It's easy to reproduce the original problem: run Emacs in a terminal and make 
> a buffer with many markers. See how the text displays slower with more 
> markers. I've attached a short example; try (make-test-buffer 1000).

How can we be sure this reproduces the original issue?  The original
issue was reported from a real-life use case, not from a toy program.

> The attached patch fixes this problem.

Thanks, but this is not the whole story with that problem in
encode_coding_object.





reply via email to

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