Need to remove memory usage limit
Posted: 2018-10-09T09:48:17-07:00
I work for a company that has used ImageMagick for a long time, through MagickCore with C and C++. We were using a very old version until now. That version, when loading a large animated gif, would spike mem usage up to about 5GB and get the job done in about 5 seconds. We liked that just fine.
Now, we are upgrading to (relatively) current code. When we load the same gif now, mem usage caps at about 1.7GB but the file takes about 5 minutes to load. Not ok with us. How can I remove that limit? I have tried changing the line "memory" in policy.xml from 2GiB to 6GiB, but it seems to have no effect on the mem use, which still caps around 1.7GB. Are there some other policy lines I should put there to affect this? Can I just go in the code somewhere and remove the limit? I'll be pursuing this line, just hoping for some hints here to make this go quicker.
Now, we are upgrading to (relatively) current code. When we load the same gif now, mem usage caps at about 1.7GB but the file takes about 5 minutes to load. Not ok with us. How can I remove that limit? I have tried changing the line "memory" in policy.xml from 2GiB to 6GiB, but it seems to have no effect on the mem use, which still caps around 1.7GB. Are there some other policy lines I should put there to affect this? Can I just go in the code somewhere and remove the limit? I'll be pursuing this line, just hoping for some hints here to make this go quicker.