mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-08 05:24:39 +01:00
larger tmp buf for faster copying
This commit is contained in:
parent
313ede734f
commit
5eee1c702e
1 changed files with 1 additions and 4 deletions
|
@ -159,8 +159,6 @@ symLoadSpecialData( SymDictCtxt* ctxt, RFile* file )
|
||||||
XP_UCHAR* text = (XP_UCHAR*)XP_MALLOC(ctxt->super.mpool, txtlen+1);
|
XP_UCHAR* text = (XP_UCHAR*)XP_MALLOC(ctxt->super.mpool, txtlen+1);
|
||||||
TPtr8 desc( text, txtlen );
|
TPtr8 desc( text, txtlen );
|
||||||
file->Read( desc, txtlen );
|
file->Read( desc, txtlen );
|
||||||
// XP_MEMCPY( text, ptr, txtlen );
|
|
||||||
// ptr += txtlen;
|
|
||||||
text[txtlen] = '\0';
|
text[txtlen] = '\0';
|
||||||
XP_ASSERT( face < nSpecials );
|
XP_ASSERT( face < nSpecials );
|
||||||
texts[face] = text;
|
texts[face] = text;
|
||||||
|
@ -181,10 +179,9 @@ readFileToBuf( XP_UCHAR* dictBuf, const RFile* file )
|
||||||
{
|
{
|
||||||
XP_U32 offset = 0;
|
XP_U32 offset = 0;
|
||||||
for ( ; ; ) {
|
for ( ; ; ) {
|
||||||
TBuf8<256> buf;
|
TBuf8<1024> buf;
|
||||||
TInt err = file->Read( buf, buf.MaxLength() );
|
TInt err = file->Read( buf, buf.MaxLength() );
|
||||||
TInt nRead = buf.Size();
|
TInt nRead = buf.Size();
|
||||||
XP_LOGF( "read %d bytes from file", nRead );
|
|
||||||
if ( nRead <= 0 ) {
|
if ( nRead <= 0 ) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue