I\'m trying to reduce the memory footprint of the code below, which is only about initializing the data I need to then perform a certain set of operations.
Pre-alloca