On Mon, Aug 31, 2009 at 7:40 PM, bernd.fondermann<[email protected]> wrote: > Now there are convenience methods to replace 'to' and 'from' only in > StanzaBuilder.createForward(Stanza original, Entity from, Entity to) > and > <T extends Stanza> T StanzaBuilder.createForwardStanza( > T original, Entity from, Entity to)
Great! > I noticed that MUCMessageHandler's call to StanzaBuilder.createClone > doesn't reuse the list in this way and re-creates it in the inner loop. > We might want to change that. We might. MUC is not optimized for performance (or much else besides functionality) at this point. That being said, I'm not sure that recreating the list is that much more expensive than reusing and replacing. /niklas
