KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have about 10 million values that I need to put in some type of look up table, so I was wondering which would be more efficient a list or dict ? I know you can do something like this for both: if something in dict_of_stuff: pass and if something in list_of_stuff: pass My thought is the dict will be faster and more efficient. Thanks for your help. EDIT Little more info on what I'm trying to do. Euler Problem 92 . I'm making a look up table to see if a value calculated has all ready been calculated. EDIT 2 Efficiency for look up. EDIT 3 There are no values associated with the value...so would a set be better?
Tags (comma-separated)
Save Edits
Cancel