We are having problems in a Linux environment because it uses more memory than 12GB while in Windows it uses only 3 GB. Using the same psd and code the results are different, it is seen that the process increases memory usage updating the textlayers, calling the method layerText.TextData.UpdateLayerData(), and makes a memory spike in the save method of the psd.
-
Code:
What I am doing is replacing the text of a textlayer according to the content loaded in a text file that is taken as input parameter to the program:
code-memory-perfomance.zip (1.4 KB) -
Psd and txt files used:
test_InputTxt.zip (813 Bytes)
psd-used-memory-perfomance.zip (304 Bytes)
We want to know why memory usage increases so much in Linux and if there is any workaround