/sys/doc/ Documentation archive


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

Re: Inner Loops



hd and tl are single pointer operations.
Limbo lists are stored (roughly) as follows:

struct list	{
	data-of-some-type hd;
	struct list *tl;
	};
where tl points to the next item in the list.

So,  given a list x, the limbo hd and tl operators
correspond to  x.hd and x.tl.  One really can't make
them much faster.

Offhand, I don't know exactly how len is implemented.