I'm writing an application that works with big-data applications. One of my processes is failing and debugging is taking a while because some of the files that needed to be loaded in memory are 50+ gb.
I want to be able to create an object with 2GB and another with 41GB of memory space. (It doesn't matter what is in the object, the object just needs to take some memory). I would read from a file, but its is taking a while.
Is there a programmatic way of creating a object with 2GB of memory size in python3.7?