summaryrefslogtreecommitdiffstats
path: root/src/render/backend/stringtoint_p.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix StringToInt implementationLars Knoll2017-09-061-5/+0
| | | | | | | | | | | | Reduces the overhead per call of lookupId() from around 7000 to 180 instructions for a use case. Should in general scale much better. I still do not like that this is using global static data that is never cleaned up. It should be tied at the minimum to the lifetime of the Qt 3D scene. Change-Id: I777a2bbf2d765f4b0fc9e3d2b06692c7260f5a9f Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* StringToInt: add an overload taking QLatin1StringMarc Mutz2016-05-141-0/+1
| | | | | | | | | | | | | | | | | | About 50% of callers pass static string literals, which can be converted from QStringLiteral to QLatin1String if by adding the overload. Because of the complicated logic in the existing overload, no attempt is made in this commit to hand down the QLatin1String until the actual comparison. Instead, the QString overload is called, for now. Saves almost 1KiB in text size in Render on optimized GCC 6.0 Linux AMD64 builds. Change-Id: I37ed154ec49349f251b6a4515c20eb7cb5c89181 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* RenderViews: use int comparison rather than string for uniforms filteringPaul Lemire2016-02-211-1/+1
| | | | | | | Provides a non negligible gain in performance. Change-Id: I1165d1fcd044e3bdebf286539da2f5316f764540 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* StringToInt: use QReadWriteLock plus temporary vectorPaul Lemire2016-02-201-0/+2
| | | | | Change-Id: I4bc421358ce209f7fedc1a5205f64d5b27df9ec8 Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
* Add StringToInt classPaul Lemire2016-02-191-0/+80
Change-Id: If2b559bbcf22116c0b8373c4bb63363b4adb478d Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>