The current implementation reads in all files given completely, and calculates the statistics for all of them, and then checks later on during the output formatting if filter critera may exclude a file from the output. In case you read in several 100 files, but only want to get the output for a month this wast a lot of computing time.
So the program should stop reading a file as soon as possible in case a filter excludes it from further processing anyhow.
The current implementation reads in all files given completely, and calculates the statistics for all of them, and then checks later on during the output formatting if filter critera may exclude a file from the output. In case you read in several 100 files, but only want to get the output for a month this wast a lot of computing time.
So the program should stop reading a file as soon as possible in case a filter excludes it from further processing anyhow.