https://bugs.documentfoundation.org/show_bug.cgi?id=160218
--- Comment #2 from Michael Meeks <[email protected]> --- Switch sounds good to me =) Somewhere in the profile I saw a red-black tree in use and I suspect RB trees are a pointer-chasing performance hazard on real modern hardware; but perhaps I mis-read this one. Would it not be better to cache the answer? have a single entry 'nLang -> ScriptType' static cache in that function ? I assume that 99.99% of the time this is the same language ? =) -- You are receiving this mail because: You are the assignee for the bug.
