Hello All,
I have a list containing around a million integers.
And I have to search this list for several million times. This really slow downs my
program. I was thinking to convert this list to a dictionary.
I will keep all integers as a key and None as their values.
But I think it is going to need double amount of memory than list.
So what I really don't know is that if None requires some kind of storage space in memory or not?
Thank you all in advance,
Sanket
I have a list containing around a million integers.
And I have to search this list for several million times. This really slow downs my
program. I was thinking to convert this list to a dictionary.
I will keep all integers as a key and None as their values.
But I think it is going to need double amount of memory than list.
So what I really don't know is that if None requires some kind of storage space in memory or not?
Thank you all in advance,
Sanket
Comment