significantly optimize wxCSConv::To/FromWChar(NULL) performance by simply using a bigger temporary buffer
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@56399 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
3e356d4144
commit
878c265b94
1 changed files with 2 additions and 2 deletions
|
|
@ -2300,7 +2300,7 @@ wxMBConv_iconv::ToWChar(wchar_t *dst, size_t dstLen,
|
|||
else // no destination buffer
|
||||
{
|
||||
// convert using temp buffer to calculate the size of the buffer needed
|
||||
wchar_t tbuf[8];
|
||||
wchar_t tbuf[256];
|
||||
res = 0;
|
||||
|
||||
do
|
||||
|
|
@ -2367,7 +2367,7 @@ size_t wxMBConv_iconv::FromWChar(char *dst, size_t dstLen,
|
|||
else // no destination buffer
|
||||
{
|
||||
// convert using temp buffer to calculate the size of the buffer needed
|
||||
char tbuf[16];
|
||||
char tbuf[256];
|
||||
res = 0;
|
||||
do
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue