Erlang (was: Re: Generics)
Lex Spoon
lex at cc.gatech.edu
Tue Nov 11 21:29:24 UTC 2003
John M McIntosh <johnmci at smalltalkconsulting.com> wrote:
> On Nov 11, 2003, at 11:09 AM, Lex Spoon wrote:
>
> >
> > Incidentally, something to observe is that Squeak makes heavy use of
> > *lists* of processes. So suspending a process means traversing the
> > entire list to put it at the end. This would probably cause problems
> > if
> > you had even single thousands of processes.
>
> Ah? It's a linked list, I don't quite see in
> Interpreter>>addLastLink: proc toList: aList
> where it traverses the entire list?
>
My mistake; it caches the tail of the list, so that you can append
quickly. So that should not be a problem after all.
Check out class LinkedList for details.
-Lex
More information about the Squeak-dev
mailing list
|