Closed hiddentao closed 7 years ago
That seems like a dubious claim. A hash table will have a typical insertion complexity of O(1)
, while a BST has a fixed O(log(n))
.
@kanongil I was basing this on code kata I've completed where using a binary tree instead of a hash table saved the day for me. However, having researched this a bit more just now, the mathematical evidence supports your point of view more than mine.
This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.
The module uses the Javascript object (i.e. built-in hash table) to store items. With a very large no. of cache items this will become less efficient than using a binary search tree to store items.