MOO-cows Mailing List Archive
[Prev][Next][Index][Thread]
Re: MOO into C
Charles Adams writes:
> foo = {@foo, bar}
>
> in order to append something to a list has to deep copy the entire list
> structure into a new list with the new element appended.
This isn't true. It doesn't do a deep copy; it does a shallow one, only
copying the the list backbone and not any of the elements. There are a number
of data structure tricks that could be used to make this faster, but they all
involve complexifying (or at least modifying) every piece of code in the server
that examines lists, since all that code "knows" how lists are currently
represented.
Pavel
References:
- MOO into C
- From: "Adams, Charles" <cadams@msgate.litc.lockheed.com>
Home |
Subject Index |
Thread Index