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

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

jquery - SimpleModal Confirm fails to submit form -