I am writing my own parser for the apache log for my company, and I noticed a performance problem that I cannot explain. I have a 1.2 GB text file log.txt.
Command: sort log.txt is 3 seconds slower than command: cat log.txt | sort
Does anyone know why this is happening?
source
share