On Mon, Jun 16, 2008 at 02:32:52PM -0000, [EMAIL PROTECTED] wrote: > [...]
Slightly related: void InsetMathNest::write(WriteStream & os) const { bool textmode = os.textMode(); docstring const latex_name = name().c_str(); for (int i = 0; i < num_text_commands; ++i) { if (latex_name == from_ascii(text_commands[i])) { os.textMode(true); break; } } Why 11 from_asii calls for each InsetMathNest::write() ? Have you checked the cost? That's using docstring const from_ascii(char const * ascii), using character-wise docstring::push_back()... Andre'