https://bugs.documentfoundation.org/show_bug.cgi?id=39179

--- Comment #41 from Michael Meeks <michael.me...@collabora.com> ---
Interesting: so this:

    123     for (sal_Int32 i : maAttributeTokens)
    124         if (i == Token)
    125             return true;

is I'm afraid reasonably optimal - you can use a hash which is supposedly
constant time, but cache effects will probably hurt you.

In general - I'm surprised to see that at the top of the profile; are there far
too many attributes being used in the XML ? is it possible that the XML is
parsed again and again in error (?) - or some meta-data ?

The call-counts can be helpful for that as you look up the stack in kcachegrind
- and those are ~independent of dbgutil.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to