[Gimp-developer] changes in script-fu in 2.3.14

Raphaël Quinet raphael at gimp.org
Tue Jan 30 07:17:16 PST 2007


On Tue, 30 Jan 2007 16:06:00 +0200, Alexander Rabtchevich <alexander.v.rabtchevich at iaph.bas-net.by> wrote:
> Some more thoughts on local variables in scheme from a newbie POV.
> 
> Due to a parenthesis syntaxes of variable declaration area, if variable 
> x is declared before variable y and y is declared before x is dropped, x 
> remains active at least until y is dropped.
[...]

So what?  Keep in mind that premature optimization is the worst ennemy
of the developer.  Script-Fu was never designed to be especially efficient:
it was designed to get the job done with a minimum amount of developer
effort.

Also, does it make sense to worry about leaving a variable and its context
in memory for a little while when this variable only takes a few bytes and
the data that you are manipulating is several orders of magnitude larger?
Keeping an integer and its context on the stack means almost nothing in
comparison with the megabytes of image data that the script is processing.

-Raphaël


More information about the Gimp-developer mailing list