all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Lightweight Strings
@ 2009-11-08 21:14 Nordlöw
  2009-11-08 21:41 ` Pascal J. Bourguignon
  2009-11-09  2:02 ` Stefan Monnier
  0 siblings, 2 replies; 4+ messages in thread
From: Nordlöw @ 2009-11-08 21:14 UTC (permalink / raw
  To: help-gnu-emacs

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

Is there support for lighweight strings?

/Nordlöw


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Lightweight Strings
  2009-11-08 21:14 Lightweight Strings Nordlöw
@ 2009-11-08 21:41 ` Pascal J. Bourguignon
  2009-11-09  2:02 ` Stefan Monnier
  1 sibling, 0 replies; 4+ messages in thread
From: Pascal J. Bourguignon @ 2009-11-08 21:41 UTC (permalink / raw
  To: help-gnu-emacs

Nordlöw <per.nordlow@gmail.com> writes:

> How lightweight are strings in Emacs, if they don't contain any
> properties?
>
> Is there support for lighweight strings?

Why do you care?

-- 
__Pascal Bourguignon__


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Lightweight Strings
  2009-11-08 21:14 Lightweight Strings Nordlöw
  2009-11-08 21:41 ` Pascal J. Bourguignon
@ 2009-11-09  2:02 ` Stefan Monnier
  2009-11-10  9:46   ` Nordlöw
  1 sibling, 1 reply; 4+ messages in thread
From: Stefan Monnier @ 2009-11-09  2:02 UTC (permalink / raw
  To: help-gnu-emacs

> 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


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Lightweight Strings
  2009-11-09  2:02 ` Stefan Monnier
@ 2009-11-10  9:46   ` Nordlöw
  0 siblings, 0 replies; 4+ messages in thread
From: Nordlöw @ 2009-11-10  9:46 UTC (permalink / raw
  To: help-gnu-emacs

On 9 Nov, 03:02, Stefan Monnier <monn...@iro.umontreal.ca> wrote:
> > 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

Thanks,
Per


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-11-10  9:46 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-08 21:14 Lightweight Strings Nordlöw
2009-11-08 21:41 ` Pascal J. Bourguignon
2009-11-09  2:02 ` Stefan Monnier
2009-11-10  9:46   ` Nordlöw

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.