I need to optimize my script. A thing I could do is preallocating, however the size of my output cell is unknown so my question is if it is worth it.
the output of the script is X, the size of X is not known.
Now I have:
If the output cell has the size 2x2 for example, can I do something like this:
not sure if it will increase the speed of my script
*somehow reduce the size of X