Integrate Hashtable into Multicaster, where @mwarning found heaviest std::map() overhead.
This commit is contained in:
parent
3947807b1f
commit
b11ffc9635
5 changed files with 119 additions and 59 deletions
|
@ -141,6 +141,8 @@ public:
|
|||
*/
|
||||
inline uint32_t adi() const throw() { return _adi; }
|
||||
|
||||
inline unsigned long hashCode() const throw() { return (_mac.hashCode() ^ (unsigned long)_adi); }
|
||||
|
||||
inline bool operator==(const MulticastGroup &g) const throw() { return ((_mac == g._mac)&&(_adi == g._adi)); }
|
||||
inline bool operator!=(const MulticastGroup &g) const throw() { return ((_mac != g._mac)||(_adi != g._adi)); }
|
||||
inline bool operator<(const MulticastGroup &g) const throw()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue