]> sjero.net Git - wget/blobdiff - src/ChangeLog
[svn] Use hash table for tag lookup in html-url.c and html-parse.c.
[wget] / src / ChangeLog
index e6fb559dcfd9b384d3e195bfd5347843c52f29ff..ec0fe3067e7f5d23b6becb3cbf994b765c8fd249 100644 (file)
@@ -1,3 +1,14 @@
+2003-10-09  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * html-url.c (init_interesting): Initialize interesting_tags and
+       interesting_attributes as hash tables.  This simplifies the code
+       immensely because hash tables handle allocation and remove
+       duplicates automatically.
+       (find_tag): Removed.
+       (collect_tags_mapper): Instead of calling find_tag, simply get the
+       entry from interesting_tags hash table, which is both simpler and
+       faster.
+
 2003-10-09  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * hash.c (hash_table_get): Declare hash-table argument as const.