http://www.perlmonks.org?node_id=221194


in reply to count sort & output II

Also you may want to have two logic forks, if size of file is > physicalmemsize use File::Sort else use in mem sort as you look at larger and larger log files you will become memory bound doing it this way.

-Waswas