28.08.2010 02:36, Waqas Hussain wrote:
2. A table of local accounts mapped to list of subscriptions. Each
subscription is just two pointers (one to a shared caps hash table,
and one to a JID). 1M * 64 bytes = 64MB (just roughly picked 64
bytes).

Let me clarify if you don't mind ;) Do you mean 'recipients' table here? If yes, then I have some questions:

1) is it shared/mutable/global table?
2) I see only one deletion there, in line 128 of mod_pep.lua (I'm looking at 0.7.0 release). Does that mean recipients[user] is deleted somewhere else when the corresponding user's session terminates?
3) Do you limit the number of recipients you cached for local user?

 3. The caps hash table, mapping caps hashes to a list of +notify
 namespaces.

I guess you are talking about hash_map table. Do you care about the size of 
this table? I don't see any checks in the code :)


--
Regards,
Evgeniy Khramtsov, ProcessOne.
xmpp:[email protected].

_______________________________________________
JDev mailing list
Forum: http://www.jabberforum.org/forumdisplay.php?f=20
Info: http://mail.jabber.org/mailman/listinfo/jdev
Unsubscribe: [email protected]
_______________________________________________

Reply via email to