Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Lightweight Strings

0 views
Skip to first unread message

Nordlöw

unread,
Nov 8, 2009, 4:14:21 PM11/8/09
to
How lightweight are strings in Emacs, if they don't contain any
properties?

Is there support for lighweight strings?

/Nordlöw

Pascal J. Bourguignon

unread,
Nov 8, 2009, 4:41:58 PM11/8/09
to
Nordl�w <per.n...@gmail.com> writes:

Why do you care?

--
__Pascal Bourguignon__

Stefan Monnier

unread,
Nov 8, 2009, 9:02:50 PM11/8/09
to
> 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


Stefan

Nordlöw

unread,
Nov 10, 2009, 4:46:19 AM11/10/09
to

Thanks,
Per

0 new messages