[sr-dev] [kamailio/kamailio] str_hash: Option to allocate hash in shm (#1535)

Daniel-Constantin Mierla notifications at github.com
Thu May 24 10:21:38 CEST 2018


I am not sure yet about how to deal with this one.

I agree that there is space to reuse some code for hash tables in shared memory, but I feel that we should have dedicated code for it, not to mix it with the one in pkg memory. It will avoid all these if checks to lock/unlock, as we use hash tables to speed up search, it feels we need to keep it optimised.

Moreover, iirc and hope not to confuse with other api, some of the macros are even now used for hash tables in memory, just that the lock/unlock of the slot is done in the implementation code, not in the core code.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/1535#issuecomment-391630806
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20180524/0441f1c6/attachment-0001.html>


More information about the sr-dev mailing list