about summary refs log tree commit homepage
path: root/lib/PublicInbox/Git.pm
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-01-11 22:34:55 +0000
committerEric Wong <e@yhbt.net>2020-01-13 04:36:36 +0000
commit7778d7abd5acb2ba7c32de10cec1369f3982bf84 (patch)
tree3131247fbea2919caba3afeae57954bb0d9722a3 /lib/PublicInbox/Git.pm
parentea5c81fb5c45d75528de81b91019af58782e2d91 (diff)
downloadpublic-inbox-7778d7abd5acb2ba7c32de10cec1369f3982bf84.tar.gz
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.
Diffstat (limited to 'lib/PublicInbox/Git.pm')
0 files changed, 0 insertions, 0 deletions