Skip to content

Conversation

@apoc
Copy link

@apoc apoc commented Jan 26, 2017

I hope there is no hidden bug.

Miroslav Drbal added 3 commits January 26, 2017 23:44
 - hashTable is just array of buckets now
 - do not use expensive % operation

* Improvements in HashBucket:
 - there is no dummy head node
 - head node now can take data
 - improved algorithms working with linked list
hashTable[i] = new HashBucket<K, V>(); //create the hash buckets
}
assert(hashSize_ > 0 && "Hash size muste be > 0");
assert((hashSize_ & (hashSize_ - 1)) == 0 && "Hash size must be power of 2");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seriously, if you're going to change the API contract, you really must update the documentation.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What API constract and documentation are you talking about?

@paulocoutinhox
Copy link

+1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants