in reply to use File::Slurp for (!"speed");
Efficiency is about getting the biggest return for the smallest investment. It is also necessary to define return and investment since those are things that matter to you. Trading memory for speed wouldn't normally be said to be efficient except that usually speed matters and memory doesn't unless you run out of it.
Personally, I would have asked the new guy in what way was it more efficient. It is possible that you did ask, the response was speed, and this rant is warranted - but you failed to include that information. It is also possible that because of the file size, whatever efficiency File::Slurp offered wasn't worth the trade (programmer-time efficiency). Personally, I would like to know why it is considered more efficient as I haven't had time to look at the code myself.
Cheers - L~R
|
|---|