The application also may itself benefit from tuning. This suggestion is more than theoretical -- it comes from looking at some real-world performance problems.
For example, if you repeatedly create and destroy hundreds of widgets, or if you force unnecessary widget geometry management, Motif or Xt functions will show up high on any performance chart. The real question is "does the application really need to be doing this?"