mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-25 13:09:20 +02:00
* Set bigger buffer size for hosts file to speed up parsing
git-svn-id: trunk@35520 -
This commit is contained in:
parent
d2a1e8f9de
commit
b9e03c1aff
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user