]> Sergey Matveev's repositories - public-inbox.git/commitdiff
config: do not slurp entire cgitrc at once
authorEric Wong <e@yhbt.net>
Sat, 11 Jan 2020 22:34:55 +0000 (22:34 +0000)
committerEric Wong <e@yhbt.net>
Mon, 13 Jan 2020 04:36:36 +0000 (04:36 +0000)
cgitrc files can have hundreds or thousands of lines in them and
slurping them into memory is a waste.  "while (<$fh>)" only
reads one line at a time, whereas "for (<$fh>)" reads the entire
contents of the file into a temporary array.


No differences found