Freeing memory while working with variables which read through large amounts of text
Posted: Mon May 20, 2024 7:24 pm
Hi Oleg,
Could you, please, advise the best practice for working with variables which hold big amounts of text at many iterations?
I often use variables to read text from a number of text files in a loop. I do this to find certain values or to replace strings of text in files. The problem I am facing is that sometimes, after several iterations, Robotask freezes and I have to kill it and re-start. Also, when this happens, log displays steps names with funny characters. And I noticed that this depends on the size of the files - the bigger the files the more often Robotask freezes. It suggests to me that memory is not getting freed up or reused between iterations, something gets stuck and accumulates. Which, in turn, tells me I am not using the variables correctly and efficiently.
What would you recommend to make sure only needed values stay in memory between iterations, but the rest gets removed from there?
I remember reading your advice on this or similar problem few years ago but cannot find it now.
Thank you.
Sincerely,
Lana
Could you, please, advise the best practice for working with variables which hold big amounts of text at many iterations?
I often use variables to read text from a number of text files in a loop. I do this to find certain values or to replace strings of text in files. The problem I am facing is that sometimes, after several iterations, Robotask freezes and I have to kill it and re-start. Also, when this happens, log displays steps names with funny characters. And I noticed that this depends on the size of the files - the bigger the files the more often Robotask freezes. It suggests to me that memory is not getting freed up or reused between iterations, something gets stuck and accumulates. Which, in turn, tells me I am not using the variables correctly and efficiently.
What would you recommend to make sure only needed values stay in memory between iterations, but the rest gets removed from there?
I remember reading your advice on this or similar problem few years ago but cannot find it now.
Thank you.
Sincerely,
Lana