dicom-dict used a huge switch() statement to look up tags. This patch replaces
that with a hash table built on first use. Performance should be better,
and we save a lot of code.
I also indented the static decl of the dictionary for consistency,
simplified the lookup methods, and swapped the long strcmp checks for another
hash table lookup.
dicom-dict used a huge switch() statement to look up tags. This patch replaces that with a hash table built on first use. Performance should be better, and we save a lot of code.
I also indented the static decl of the dictionary for consistency, simplified the lookup methods, and swapped the long strcmp checks for another hash table lookup.