mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
HashTable changes
- make table power-of-two, but since it seems to give 1-2% performance improvement, maybe forget it too. - remove two-argument form of hashing classes and do the modulus direclty within HashTable instead. This simplifies things a fair bit. - migrate Hash<void*> from db/dlLibrary to primitives/hashes/Hash
This commit is contained in:
@ -89,9 +89,10 @@ public:
|
||||
class hash
|
||||
{
|
||||
public:
|
||||
inline hash();
|
||||
hash()
|
||||
{}
|
||||
|
||||
inline size_type operator()(const string&) const;
|
||||
inline size_type operator()(const string&, const size_type) const;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user