[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: utf8 and emacs text/string multibyte representation
From: |
Stefan Monnier |
Subject: |
Re: utf8 and emacs text/string multibyte representation |
Date: |
Wed, 29 Oct 2014 12:45:58 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
>> Yet setting string elements can trigger reallocations/memmove
>> operations.
> Emacs, as every editor, needs to handle this efficiently anyway,
> because editing operations rarely leave the buffer size unchanged. So
> Emacs uses a gap to minimize reallocations.
To clarify: Emacs handles modification of strings naively
(reallocate+memmove), but it doesn't matter much because these are
almost never used (my own local Emacs actually completely disallows
them, and I very rarely bump into problems because of it). All "string
modifications" instead take place in buffers where we can efficiently
insert/delete/replace text.
Stefan
- utf8 and emacs text/string multibyte representation, (continued)
- utf8 and emacs text/string multibyte representation, Camm Maguire, 2014/10/29
- Re: utf8 and emacs text/string multibyte representation, Eli Zaretskii, 2014/10/29
- Re: utf8 and emacs text/string multibyte representation, Camm Maguire, 2014/10/29
- Re: utf8 and emacs text/string multibyte representation, Eli Zaretskii, 2014/10/29
- Re: utf8 and emacs text/string multibyte representation, Camm Maguire, 2014/10/31
- Re: utf8 and emacs text/string multibyte representation, Eli Zaretskii, 2014/10/31
- Re: utf8 and emacs text/string multibyte representation, Camm Maguire, 2014/10/31
- Re: utf8 and emacs text/string multibyte representation, Eli Zaretskii, 2014/10/31
- Re: utf8 and emacs text/string multibyte representation, Camm Maguire, 2014/10/31
- Re: utf8 and emacs text/string multibyte representation, Stephen J. Turnbull, 2014/10/31
- Re: utf8 and emacs text/string multibyte representation,
Stefan Monnier <=
- Re: utf8 and emacs text/string multibyte representation, Raymond Toy, 2014/10/29
- Re: [Gcl-devel] utf8 and emacs text/string multibyte representation, Camm Maguire, 2014/10/31
- Re: [Gcl-devel] utf8 and emacs text/string multibyte representation, Stefan Monnier, 2014/10/31
- Message not available
- Re: utf8 and emacs text/string multibyte representation, Andreas Schwab, 2014/10/31
- utf8 and emacs text/string multibyte representation, Stephen J. Turnbull, 2014/10/29
- Re: Referring to revisions in the git future., Eric S. Raymond, 2014/10/29
- Re: Referring to revisions in the git future., Stefan Monnier, 2014/10/29
- Re: Referring to revisions in the git future., Eric S. Raymond, 2014/10/29
- Re: Referring to revisions in the git future., Stephen J. Turnbull, 2014/10/29
- Re: Referring to revisions in the git future., Jan Djärv, 2014/10/29