|
|
|
|
|
by emcq
795 days ago
|
|
If we are going to consider using prior runs of the program having the file loaded in RAM by the kernel fair, why stop there? Let's say I create a "cache" where I store the min/mean/max output for each city, mmap it, and read it at least once to make sure it is in RAM. If the cache is available I simply write it to standard out. I use whatever method to compute the first run, and I persist it to disk and then mmap it. The first run could take 20 hours and gets discarded. By technicality it might fit the rules of the original request but it isn't an interesting solution. Feel free to submit it :) |
|