driver("png") is very slow and demands huge memory to output grayplot objects
Reported by Samuel GOUGEON (@sgougeon)
Originally assigned to Calixte DENIZET
BUG DESCRIPTION:
----------------
From a fresh session, sending a 500x500 grayplot to a file through driver("png")
makes Scilab using +250MB memory (from 194 climbing to 446MB), is very long, and often
yields an out of memory error.
ERROR LOG:
----------
-->xend()
!--error 999
xend : Une erreur s'est produite : Impossible de créer le fichier d'export, pas assez de mémoire disponible. Diminuer le nombre d'éléments ou la taille de la figure devrait corriger cette erreur.
HOW TO REPRODUCE THE BUG:
-------------------------
m = rand(500,500);
driver("PNG");
tic();
xinit("test.png")
grayplot(1:500,1:500,m)
xend()
toc()
driver("REc");
OTHER INFORMATION:
------------------
This blocks compiling HTML doc for almost every page having some <scilab:image>grayplot..</scilab:image> output.
-->[v,o]=getversion()
o =
!ICC x64 tk modelicac release Nov 30 2013 00:28:50 !
v =
scilab-master-1385742052