How does memory affect the performance of scientific computing tasks?