Mercurial > octave
changeset 29859:65f0754d9569 stable
Reduce memory usage in BIST tests for copyobj, hgsave (bug #57591)
* copyobj.m, hgsave.m: Use option '-r100' in print() code in BISTs to reduce
resolution and save memory.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 08 Jul 2021 09:36:24 -0700 |
parents | 8e898dc7e7d3 |
children | 2624ee427735 |
files | scripts/plot/util/copyobj.m scripts/plot/util/hgsave.m |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/copyobj.m Sat Jul 03 08:57:12 2021 +0200 +++ b/scripts/plot/util/copyobj.m Thu Jul 08 09:36:24 2021 -0700 @@ -227,9 +227,9 @@ %! png1 = [tempname() ".png"]; %! png2 = [tempname() ".png"]; %! unwind_protect -%! print (h1, png1); +%! print (h1, "-r100", png1); %! [img1, map1, alpha1] = imread (png1); -%! print (h2, png2); +%! print (h2, "-r100", png2); %! [img2, map2, alpha2] = imread (png2); %! unwind_protect_cleanup %! unlink (png1);
--- a/scripts/plot/util/hgsave.m Sat Jul 03 08:57:12 2021 +0200 +++ b/scripts/plot/util/hgsave.m Thu Jul 08 09:36:24 2021 -0700 @@ -111,10 +111,10 @@ %! png2 = [tempname() ".png"]; %! unwind_protect %! hgsave (h1, ftmp); -%! print (h1, png1); +%! print (h1, "-r100", png1); %! [img1, map1, alpha1] = imread (png1); %! h2 = hgload (ftmp); -%! print (h2, png2); +%! print (h2, "-r100", png2); %! [img2, map2, alpha2] = imread (png2); %! unwind_protect_cleanup %! unlink (ftmp);