mirror of https://github.com/OpenMW/openmw.git
StringUtils: use the locale-unaware tolower function
There is no change in behaviour since we were using the C locale. The locale-aware tolower is much slower than the locale-unaware one. At least on Linux/GCC it calls dynamic_cast's, and is overall slower by an order of magnitude.pull/827/head
parent
44dd62067e
commit
27e669296e
@ -1,8 +0,0 @@
|
||||
#include "stringops.hpp"
|
||||
|
||||
namespace Misc
|
||||
{
|
||||
|
||||
std::locale StringUtils::mLocale = std::locale::classic();
|
||||
|
||||
}
|
Loading…
Reference in New Issue