|
Re: Count number of occourences of a IP address in a log file.
it is a delicate balance between whos time is more valuable. this is not a great example of it seeing that your solution would be rather simple to implement also, but:
my time * my salaray > (my cpu's time ^ 2) * my cpu's salaray
i wager that my algorithm could count a 1MB file in less than ten minutes under the worst case of no ip address duplicates.
|