Pre-emptive performance fix - avoid having to read the complete log file into memory at the same time before processing it.
authorSimon Howkins <simonh@symbian.org>
Fri, 02 Oct 2009 16:19:09 +0100
changeset 576 7be9799d1a41
parent 575 588d89ee2c05
child 577 424a5ad9bc7d
Pre-emptive performance fix - avoid having to read the complete log file into memory at the same time before processing it.
common/tools/brag/logToBRAG.pl
--- a/common/tools/brag/logToBRAG.pl	Mon Oct 05 09:44:59 2009 +0100
+++ b/common/tools/brag/logToBRAG.pl	Fri Oct 02 16:19:09 2009 +0100
@@ -88,7 +88,7 @@
 }	
 
 # Iterate through all the lines of all the files in @ARGV
-foreach my $line (<>)
+while (my $line = <>)
 {
 	chomp $line;
 	foreach my $rule (@rules)