Should I aggressively release memory while reading a file line by line in Perl? -


Should I release the memory aggressively to read the line by reading the file? Example:

  while (& lt; FILE & gt;) {my $ line = $ _; & Lt; Process line & gt; Undef ($ line); }  

$ line variable "underfilling" is a good option to reduce memory consumption?

It should not make any difference because as the next loop starts running, the variable is released Whether you obviously do not know it or not.


Comments

Popular posts from this blog

iphone - How do I make a UIPickerView in a UIActionSheet -

java - Is there an object like a "Set" that can contain only unique string values, but also contain a count on the number of occurrences of the string value? -