Page 1 of 1
CEA script VS CEA load script?
Posted: 19 Aug 2022 11:49
by eil
When CEA come i already had some scripts in use, so i just added them with "load script". More small actions came and i was just pasting them in CEA directly. And lately i suddenly got a presumption: CEA-scripts are stored in main INI file, so they're ought to be loaded along the configuration during XY start and stay in memory whole session, while Load script will read file each time i call a function = so storing(at least small) scripts in CEA directly is much more productive.!
Am i right in my presumption?
-
Re: CEA script VS CEA load script?
Posted: 19 Aug 2022 12:07
by highend
I don't think they stay in memory because of that (but Don needs to answer this)
I don't find this productive.
It's way easier to edit an external script (via a good editor with syntax highlighting, correct indentation, etc.^^) instead of going into CEA configuration details to edit small parts via just an "edit text" window...
Re: CEA script VS CEA load script?
Posted: 19 Aug 2022 12:32
by admin
They don't stay in memory.
Re: CEA script VS CEA load script?
Posted: 19 Aug 2022 20:01
by eil
Is there a way to make scripts stay in memory to be read from there?(is there some method/place to put them in)
Small numbers make big numbers, and i don't like that simple script for opening fav menu(which is used 20-50 times per day) will be read from hdd each time.(especially as there are more tiny scripts like that) When it's some complicated and seldom used script i'm fine, but when it's smth small, yet making constant hardware operations - that worries me.

p.s. Side question: so XY doesn't load whole INI on start and makes reads constantly during workflow?..
Re: CEA script VS CEA load script?
Posted: 19 Aug 2022 20:36
by admin
1) No way ATM.
2) No, INI is read on startup and never again.
Re: CEA script VS CEA load script?
Posted: 19 Aug 2022 22:34
by Evolve
eil wrote: ↑19 Aug 2022 20:01
i don't like that simple script will be read from hdd each time... Is there a way to make scripts stay in memory to be read from there?
You can do it yourself (kind of) by moving XY folder into a
RAM disk.
Re: CEA script VS CEA load script?
Posted: 19 Aug 2022 22:40
by highend
Windows has a file cache. Those little things (if executed often enough) are already cached automatically...
Re: CEA script VS CEA load script?
Posted: 20 Aug 2022 00:36
by eil
admin wrote: ↑19 Aug 2022 20:36
2) No, INI is read on startup and never again.
Then what about scripts put directly in CEA fields - they are stored in INI so ought to be read along, isn't it?
Evolve wrote: ↑19 Aug 2022 22:34You can do it yourself (kind of) by moving XY folder into a
RAM disk.
I was thinking about such solution too, but hope to find other way as don't have much RAM.
highend wrote: ↑19 Aug 2022 22:40
Windows has a file cache. Those little things (if executed often enough) are already cached automatically...
For pity one can't know if this works in particular case, so i'd prefer to be sure.
Re: CEA script VS CEA load script?
Posted: 20 Aug 2022 02:36
by jupe
You could use the fc flag of load, only beneficial if you use the same script repetitively though without any others in between.
Re: CEA script VS CEA load script?
Posted: 20 Aug 2022 22:08
by eil
jupe wrote: ↑20 Aug 2022 02:36
You could use the fc flag of load, only beneficial if you use the same script repetitively though without any others in between.
Nah, different scripts used so it's not a solution.
Well basically it's all about IF scripts that are stored in XY INI loaded along with all settings on XY start.
Re: CEA script VS CEA load script?
Posted: 21 Aug 2022 11:11
by admin
eil wrote: ↑20 Aug 2022 22:08
Well basically it's all about IF scripts that are stored in XY INI loaded along with all settings on XY start.
They are.
Re: CEA script VS CEA load script?
Posted: 22 Aug 2022 10:47
by eil
admin wrote: ↑21 Aug 2022 11:11
eil wrote: ↑20 Aug 2022 22:08
Well basically it's all about IF scripts that are stored in XY INI loaded along with all settings on XY start.
They are.
Thank you! So my theory is right and putting scripts directly in CEA is useful for less I/O stress on hardware.
Re: CEA script VS CEA load script?
Posted: 22 Aug 2022 11:41
by admin
Yep.