Creating pubsub nodes internally

Hi,

I need to create pubsub nodes internally (by internally, I mean as a result of an ad-hoc command rather than XEP-0060). I see that mod_pubsub has an exported create_node function that I could use. However, the frequency of node creation could be reasonably high, so I'm wondering whether, in terms of performance/efficiency, it would be better to call this function directly from my ad-hoc module, or invoke it via something like gen_server:call/handle_call ?

Thanks,
Beaker.

Syndicate content