A dictionary look up will be faster than ittering or bolest. But if what you have to do is every time create the dictionaryand then do the look up, probably that act of creating the dictionary erases the speed up because yu would have just your kind of looping it over anyway. It might not actually be germaneo making your programm feel any faster,. Cause it's like optimizing in basically, and and i don't want to misrepresent.