Optimize hashtable_set()
authorPetri Lehtinen <petri@digip.org>
Tue, 9 Feb 2010 18:51:25 +0000 (20:51 +0200)
committerPetri Lehtinen <petri@digip.org>
Tue, 9 Feb 2010 18:51:25 +0000 (20:51 +0200)
commit307167fb66e83946dca6d1b22bc43ae9fd406a16
tree0aedcc5091986527eac78a22b1bb3581f7ef539a
parent8d75235ff22dc4aced697e198c3c024f1f4b88fe
Optimize hashtable_set()

If a key already exists in the hashtable, use the existing pair
changing its value instead of removing the old one and allocating a
new pair.
src/hashtable.c