I need to write a python program that is supposed to be time-efficient. For some logic in the program, I need to load in an array from a pickle dump. The dump size is around 200 MB, so it takes a few seconds to load it into memory, which isn't ideal. I was wondering if there is a way to compile the python program into an executable in such a way that its byte code includes the data from the pickle dump as well so that it doesn't need to read it from the disk on startup?
Alternatively, if a better solution is available to this problem, that would be appreciated.