I have a file which is around 70MB. In my program I do some operations then I see if the result of those operations are contained in the file. I use contains() to do that (file.contains(value)). I need to perform around 1-10 million operations which is quite memory consuming. For 1 thousand operations I require around 1 minute and 20 seconds (on i5 CPU). I want to know if it is possible to speed things up.
Thank you.