These are called repeatedly for every single file processed and we end up spending non-trivial amounts of time doing translation work.
Details
Details
Copied 1000 files, spends 6.24% of time in i18ndc calls
Not sure about implications on thread-safety and we don't evcit those strings anymore, but they're not that many..
Diff Detail
Diff Detail
- Repository
- R241 KIO
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Good idea.
This is indeed threadsafe, since in C++11 static objects are threadsafe.
And this is done on demand the first time the function is called, so qApp exists and the catalogs are loaded, etc. no problem.