E
_eee_
I have been using a HashTable to store name/value pairs, but now I
need to add a third element (name/value/flag). I still need to be
able to index by ["Name"], and I'd like to keep lookup speed as high
as possible.
I'm considering using a DataTable instead of the HashTable since I
have to store the values to a database eventually anyway. It seems
like the DataTable can do what the HashTable is doing in this case,
but I'm concerned about efficiency.
Does anyone happen to know the tradeoffs in using the DataTable
instead? I was originally considering building both tables at the
same time, but that seems unnecessary.
need to add a third element (name/value/flag). I still need to be
able to index by ["Name"], and I'd like to keep lookup speed as high
as possible.
I'm considering using a DataTable instead of the HashTable since I
have to store the values to a database eventually anyway. It seems
like the DataTable can do what the HashTable is doing in this case,
but I'm concerned about efficiency.
Does anyone happen to know the tradeoffs in using the DataTable
instead? I was originally considering building both tables at the
same time, but that seems unnecessary.