* Set bigger buffer size for hosts file to speed up parsing

git-svn-id: trunk@35520 -
This commit is contained in:
michael 2017-03-04 14:54:03 +00:00
parent d2a1e8f9de
commit b9e03c1aff

View File

@ -332,12 +332,16 @@ Var
L : String; L : String;
A : THostAddr; A : THostAddr;
T : PHostListEntry; T : PHostListEntry;
B : Array of byte;
FS : Int64;
begin begin
Result:=Nil; Result:=Nil;
Assign(F,FileName); Assign(F,FileName);
{$push}{$I-} {$push}{$I-}
Reset(F); Reset(F);
SetLength(B,65355);
SetTextBuf(F,B[0],65355);
{$pop}; {$pop};
If (IOResult<>0) then If (IOResult<>0) then
Exit; Exit;