Performance impact of StanzaExtensions
From: Pascal Bourque <pascal@xxxxxxxxxxxxx>
Date: Tue, 13 Oct 2009 18:54:06 +0200 (CEST)
Hello,

We are buiding a system based on XMPP PubSub, and our client can receive a lot of PubSub messages. In profiling the performance of message reception and handling, we discovered that about half the time spent in Parser::feed() is spent in StanzaExtensionFactory::addExtensions(), which is spending most of its time in Tag::findTagList().

It seems like the current StanzaExtension architecture requires gloox to call findTagList() for each registered StanzaExtension, on each received stanza. The PubSub Manager itself registers 3 StanzaExtensions...

Are there any plans to refactor this into something that would be more efficient?

Thanks,

Pascal