cleaner solution for xml-writing speedup.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@4176 dfc29bdd-3216-0410-991c-e03cc46cb475
This commit is contained in:
parent
5703a48a43
commit
176d607f7f
@ -1,5 +1,7 @@
|
|||||||
Changes in 1.8 (??.??.2011)
|
Changes in 1.8 (??.??.2011)
|
||||||
|
|
||||||
|
- speedup for xml-writing.
|
||||||
|
|
||||||
- CFileSystem::removeFileArchive now checking for normalized path
|
- CFileSystem::removeFileArchive now checking for normalized path
|
||||||
|
|
||||||
- Fix zip's with passwords on 64-bit systems (thx @ Dr. Gladman for writing the bugfix)
|
- Fix zip's with passwords on 64-bit systems (thx @ Dr. Gladman for writing the bugfix)
|
||||||
|
@ -205,8 +205,8 @@ void CXMLWriter::writeText(const wchar_t* text)
|
|||||||
if (!File || !text)
|
if (!File || !text)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
core::stringw s(text);
|
core::stringw s;
|
||||||
s = L""; // passing text and then resetting it is a (little ackward) way to reserve memory for the string to avoid lots of reallocations below.
|
s.reserve(wcslen(text));
|
||||||
const wchar_t* p = text;
|
const wchar_t* p = text;
|
||||||
|
|
||||||
while(*p)
|
while(*p)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user