Open Bug 1183303 Opened 6 years ago Updated 4 years ago

make RoleDescrMap efficent


(Core :: Disability Access APIs, defect, P5)





(Reporter: surkov, Unassigned)


(Blocks 1 open bug)


(Keywords: perf)

spun off bug 1150510 comment #40:

"So I believe that does fix a bug, but in a very inefficient way.  Now at start up you'll construct a bunch of strings that each own a string buffer holding a copy of the constant strings.  So you'll do a bunch of mallocing and copying for no useful purpose.  Instead I think you could use nsDependantString or just store a char16_t * pointing at the constant and then create a temporary nsString when  and if if you need it to pass to the TranslateString function."

Trev, putting your name as a mentor, in case if somebody picks it up before us.
Keywords: perf
Whiteboard: [mentor=:tbsaunde]
Curious, if copy indeed happens or the compiler is smart enough to avoid it.
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.