This : 148 int LyXText::workWidth(Inset const * inset) const 149 { 150 ParagraphList::iterator par = std::find(ownerParagraphs().begin(), 151 ownerParagraphs().end(), 152 *inset->parOwner()); 153 //lyx::Assert(par);
is really doing us no favours in buffer load time. It's near the top of the profiles. I guess parOwner() should be returning an iterator or something. btw, is there a hash map we can use from somewhere ? Right at the top is the qt frontend's char width caching which currently is std::map<Uchar, int> - pretty silly regards john