diff options
author | Eric Wong <e@yhbt.net> | 2020-01-11 22:34:55 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-01-13 04:36:36 +0000 |
commit | 7778d7abd5acb2ba7c32de10cec1369f3982bf84 (patch) | |
tree | 3131247fbea2919caba3afeae57954bb0d9722a3 /lib/PublicInbox/Git.pm | |
parent | ea5c81fb5c45d75528de81b91019af58782e2d91 (diff) | |
download | public-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