swarm-support
[Top][All Lists]
Advanced

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

Re: Tip 1: use addFirst rather than addLast. What else? (with extra pra


From: Marcus G. Daniels
Subject: Re: Tip 1: use addFirst rather than addLast. What else? (with extra praise for Marcus's fast heat bugs)
Date: 24 Mar 2000 08:42:21 -0800
User-agent: Gnus/5.070084 (Pterodactyl Gnus v0.84) Emacs/20.4

>>>>> "PJ" == Paul E Johnson <address@hidden> writes:

PJ> tip #1.  One should always add to a Swarm List with addFirst.

It doesn't matter with a Swarm collections List, since it is
double linked in a ring.  I should have used an example like atOffset:
to be concrete.

PJ> tip 4: Swarm colletions classes can sometimes be avoided by a clever use
PJ> of arrays.

In my case, the issue was a layer of abstraction which was set up in
such a way that it prevented direct access to the Java array (for the
diffusion space), and secondarily use of a java.util collection
instead of a simple Java array.  But this "tip" could of course pay of
in other contexts to some extent; Swarm collections were not involved at all.

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]