* 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;
A : THostAddr;
T : PHostListEntry;
B : Array of byte;
FS : Int64;
begin
Result:=Nil;
Assign(F,FileName);
{$push}{$I-}
Reset(F);
SetLength(B,65355);
SetTextBuf(F,B[0],65355);
{$pop};
If (IOResult<>0) then
Exit;