I have a Set
of BigInteger
that I want to cache.
This Set can go up to ~100K
size.
The application i'm using is quite light : it does not have a lot of memory (heap about 256mb
) and does not use a database (the team is considering it for later, but now it is not possible).
Upon initialization, it receives a big array
of BigInteger
that needs to be stored in a File
for future use.
The application then needs to check if a particular BigInteger
is stored into the given file.
Considering the memory implications, what would i need to do in order to store efficiently these values then check if a given value is present in the file ?