Use hash table for duplicate check of history (#163).
authorDaniel Carl <danielcarl@gmx.de>
Fri, 6 Feb 2015 21:56:34 +0000 (22:56 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Fri, 6 Feb 2015 23:01:07 +0000 (00:01 +0100)
commit640d3095a2e78466030c0d26fb6ed8c6255e95f9
tree42dd7ddd5f48f9a1bc13c84a9871e8ee396c5186
parentab55788d844697400389ffa05f3f9832645336b9
Use hash table for duplicate check of history (#163).

The previous duplication check where don on the generated list of history
items with callback function which is really slow for large history files. Now
the histories url is put into a hash table for a faster duplicate check.
Additional to this some unneeded memory allocation where removed. This makes
the code a little harder to maintain, but hey we don't want to wast time and
memory here.
src/bookmark.c
src/history.c
src/util.c
src/util.h