Skip to content

Conversation

ubolonton
Copy link
Collaborator

Currently, the text property face is always set to a list, even if there is only one face. This is technically correct, but inefficient, since it creates unnecessary cons cells, which increase GC pressure.

Additionally, it affects packages that incorrectly assumes face to be a singleton (like flyspell; see #168).

With this change, face is not set to a list until there is more than one face.

@ubolonton ubolonton merged commit 588170f into master Aug 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant