optimization question

John Meacham <john at repetae.net> writes:
> The reason I ask is I am writing someting which will generate large case
> statements [over strings] and want to know if I should bother
> pre-optimizing it to [search tries]Â¹
I've no idea what compilers do, but one quick-and-dirty way to
optimize this could perhaps be to insert the strings into a FiniteMap,
and use lookupFMWithDefault(?) to get the resulting value?
-kzm
Â¹ I think this is an accurate representation of your question?
--
If I haven't seen further, it is by standing in the footprints of giants