mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-19 20:19:25 +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;
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user