That's not specific enough. Memory usage, elapsed time, and energy usage are all functions of the input size, and each is a different optimization problem. Instead of talking about performance optimization, you should be talking about memory optimization or speed optimization.