GNU bug report logs - #29889
27.0.50; Slow visual selection

Previous Next

Package: emacs;

Reported by: Sujith <m.sujith <at> gmail.com>

Date: Fri, 29 Dec 2017 03:54:01 UTC

Severity: normal

Found in version 27.0.50

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 29889 <at> debbugs.gnu.org, larsi <at> gnus.org, m.sujith <at> gmail.com
Subject: Re: bug#29889: 27.0.50; Slow visual selection
Date: Fri, 20 May 2022 15:16:22 +0300
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: larsi <at> gnus.org,  m.sujith <at> gmail.com,  29889 <at> debbugs.gnu.org
> Date: Fri, 20 May 2022 19:49:19 +0800
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> > What will happen if the buffer text changes between the time the
> > active region is defined and the time some other program requests the
> > selection?
> 
> Then the new buffer text will be used.

Which is not the expected result.

> But we could always store that text in a temporary buffer, since
> inserting and deleting text from a buffer is much faster (and
> doesn't cons nearly as much as) making a copy of the text each time.

It is true that buffers are cheaper than strings, but they still cons
objects and consume memory.  Buffers are also much more visible to
users than strings.  So I wonder why we should do something as
complicated as creating a temporary buffer.  Why not simply allocate
memory and store the text there, if we indeed care enough about this
issue (do we?).




This bug report was last modified 2 years and 360 days ago.

Previous Next


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