Thanks to Justin Guyett for making the hashmap_insert() function use a

constant time insert.  Explanation: new enteries are added to the _front_
of the chain, rather than search to the end.
This commit is contained in:
Robert James Kaes committed 2002-05-13 20:02:23 +00:00
1 parent 73e3b495e0
commit 16e96c79e8
2 files changed
+19 -28

No files matched your search

+2
View File
@@ -5,6 +5,8 @@
(hashmap_remove): Fixed a problem where an entry could have it's
"prev" pointer still pointing at freed memory. Thanks to Justin
Guyett for finding and fixing this problem.
(hashmap_insert): Thanks to Justin Guyett for changing the code to
use a constant time insert. Much cleaner _and_ faster.
2002-05-10 Robert James Kaes <rjkaes@flarenet.com>