14.08.2018, 21:36
(This post was last modified: 14.08.2018, 21:37 by Erwin van der Zwart.)
Hi,
I don’t think a couple of KB’s will be realy noticed by the CPU..
When it’s called by a event it will be unloaded after the event so it’s only temperary load.
Also i would never use common functions for special functions, only when functions are needed by the majority of the scripts i would put it there, otherwise it’s always better to require them when needed.
Even the default functions in common functions should by moved to a user lib if you ask me, sunset calc or mail are not used by the majority of the scripts but loaded by every script, if you worry about unneeded load i would start there (:
I see your point but splitting your functions by several user libs or putting the function direct in your script is just as effective..
BR,
Erwin
I don’t think a couple of KB’s will be realy noticed by the CPU..
When it’s called by a event it will be unloaded after the event so it’s only temperary load.
Also i would never use common functions for special functions, only when functions are needed by the majority of the scripts i would put it there, otherwise it’s always better to require them when needed.
Even the default functions in common functions should by moved to a user lib if you ask me, sunset calc or mail are not used by the majority of the scripts but loaded by every script, if you worry about unneeded load i would start there (:
I see your point but splitting your functions by several user libs or putting the function direct in your script is just as effective..
BR,
Erwin