a mocking framework won't tell you what needs optimising.
A profiler may, but not a mock object (if anything it will likely hide the reason for any performance problems).
Most often when people "optimise" code they are just guessing where the problems are, grasping at straws and doing things they once heard someone say would make things faster (and usually they don't of course).
Reputation Points: 1658
Solved Threads: 331
duckman
Offline 7,719 posts
since Nov 2004