[ejabberd] Optimization of mod_disco.erl

Badlop badlop at gmail.com
Sun Sep 9 20:15:31 MSD 2007

2007/9/7, Michal Slaski <michal at erlang-consulting.com>:
> When number of hosts (domains) handled by a single ejabberd server is
> big (hundreds), response time for services discovery increases a lot.
> We have seen response times greater than 30 seconds when number of
> domains was above 1000. The attached patch optimizes
> mod_disco:get_vh_services/1 function. I removed also sorting of

BTW, I noticed your patch is being tracked here:

Disco improvement with lot of vhost

Unfortunately, that bug tracker seems to have a bug that prevents
registration of new accounts.

More information about the ejabberd mailing list