A new discovery has been made with GEGL Bash Spawn that leads to it running orders of magnitude faster, as it prevents GEGL from reloading the same operation 9 times in a row. That's what is slowing it down.
Before I show case the discovery remember that
/tmp/final.png is unique to the users given path.
The GEGL syntax
gegl-buffer-load
layer src=/tmp/final.png
gegl-buffer-load When ran after boy:spawn or anything in GEGL (like a blur or emboss) causes it to cancel everything and have nothing in the graph. GEGL Layer loads an image file; such as a final output in /tmp/. The plan to make GEGL Bash Spawn faster is to run the syntax I listed above after a few seconds of the user pressing a checkbox. The checkbox will activate the nodes at a several second delay.
This means GMIC filters in GEGL will load in 1 or 2 seconds instead of 10-20 seconds. Once again this is happening because
gegl:buffer-load cancels everything and
layer src= calls the image file that GEGL dumped in /tmp/
Example of me running GMIC's Bokeh in GEGL fast This only took one second to load because I pasted commands strategicly.
first I pasted
the command to call GMICid=callgmic
over aux=[ ref=callgmic
boy:spawn path-in="/tmp/first.png" "path-out"="/tmp/final.png" pipeline=" gmic /tmp/first.png output /tmp/in3.webp && gmic /tmp/in3.webp fx_bokeh 3,8,0,1,33.5,4,0.07,0.2,255,176,252,160,0.302,27,4.3,20,0.19,2,255,170,255,110,0.15,0,50,50 -o /tmp/final.png " ]
]
Then a second later I pasted this while Gimp was Frozen
gegl-buffer-load
layer src=/tmp/final.png
Attachment:
gmic_GEGL.png [ 1.4 MiB | Viewed 69659 times ]