The programmer's primary weapon in the never-ending battle against slow system is to change the intramodular structure. Our first response should be to reorganize the modules' data structures.
"Code Complete: A Practical Handbook of Software Construction". Book by Steve C. McConnell, 1993.