[Top][All Lists]

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

Re: Lightweight Strings

From: Stefan Monnier
Subject: Re: Lightweight Strings
Date: Sun, 08 Nov 2009 21:02:50 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

> How lightweight are strings in Emacs, if they don't contain any
> properties?

If you look at emacs/src/lisp.h and search for Lisp_String, you'll see
that strings are represented as a 4-word object:
- size in chars
- size in bytes
- pointer to text-properties interval tree
- pointer to the beginning of the string's content


reply via email to

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