>Before the optimization, the game took 113 seconds to startup1. After the optimization, the game only took 30 seconds. The script takes 230 seconds to run, much higher than the time taken for the game to load probably because the game only loads parts of the files whereas the script always loads the entire file contents into RAM.
Basically, if you want just play:
Time to play - Your script - 230s + 30s = 260s total
Time to play - Filesystem - 113s = 113s total
For permanent speedup, lets make Factorio fly with ZFS and ARC/L2ARC:
I think it's much better than what was available before OpenAI/Google. I can run it locally and the data are not shared with any Chinese or USA entity. Not even hitting the internet cables.