Abdelrazak Younes wrote:
Trying to solve bug-2452, I optimized some of the most significant problems outlined in the profile report attached in there.This patch avoid the metrics calculation by caching the last LyXFont used. I had to cleanup the width(), ascent() and descend() redundancies by transferring that to InsetBase.
Committed in a slightly cleaner form. Abdel.