SC: Faster speed of subs (by loading from memory) [Granted]

Features wanted...
FluxTorpedoe
Posts: 855
Joined: 05 Oct 2011 13:15

Re: SC: Faster speed of subs (by loading from memory) [Granted]

Post by FluxTorpedoe »

✔ v24.30.0116 is working out of the box (and commenting out "_Terminate" in v24.30.0115 prevented the Error 9 indeed)!
No other apparent issues on my side — and the subs are still muuuch faster!

 — Note 1: After investigating, the slow-down with the dynamic script didn’t come from itself, but from the visibility toggle of System or Hidden files!

 — Note 2: I’m also still trying to find out why I have a ~80ms difference when toggling between sessions, between a fresh XY install and my XY settings (with the same Session Manager settings).
Some internal XYplorer settings must come into play… I’ll post the results in Session Manager forum when I find out.

In the meantime, I think I can mark this wish as granted!
Thanks a lot :) :appl:

   Flux

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: SC: Faster speed of subs (by loading from memory) [Granted]

Post by Filehero »

Hmm, many of my scripts appear to be broken (24.030.0116). It seems to be related to loading dynamically assembled scripts (pattern load($mscript, , "s"); )

Unfortunately, right now I don't have any time for looking into it deeper - will have to roll back.

klownboy
Posts: 4139
Joined: 28 Feb 2012 19:27

Re: SC: Faster speed of subs (by loading from memory) [Granted]

Post by klownboy »

Filehero wrote: 23 Apr 2023 17:17 Hmm, many of my scripts appear to be broken (24.030.0116)
Hi Filehero. Yes, definitely refer to viewtopic.php?t=26131 and viewtopic.php?t=26132
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

admin
Site Admin
Posts: 60552
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: SC: Faster speed of subs (by loading from memory) [Granted]

Post by admin »

Filehero wrote: 23 Apr 2023 17:17 Hmm, many of my scripts appear to be broken (24.030.0116). It seems to be related to loading dynamically assembled scripts (pattern load($mscript, , "s"); )

Unfortunately, right now I don't have any time for looking into it deeper - will have to roll back.
Might be fixed in v24.30.0118.

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: SC: Faster speed of subs (by loading from memory) [Granted]

Post by Filehero »

admin wrote: 23 Apr 2023 20:44 Might be fixed in v24.30.0118.
Nope.
script_load_broken-1.PNG
script_load_broken-1.PNG (31.6 KiB) Viewed 489 times
script_load_broken-2.PNG
script_load_broken-2.PNG (26.83 KiB) Viewed 489 times
"Every" (haven't checked all) script generated and run from within a script gets borked. It's hard to decipher these interpreter messages into an overall pattern but it's somewhat indicating the script scopes/boundaries get "lost" and/or the AST is scrambled.


@Ken: thanks.
Last edited by Filehero on 23 Apr 2023 21:10, edited 1 time in total.

admin
Site Admin
Posts: 60552
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: SC: Faster speed of subs (by loading from memory) [Granted]

Post by admin »

Shall I OCR your shots or will you provide an actual script for testing?

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: SC: Faster speed of subs (by loading from memory) [Granted]

Post by Filehero »

Unfortunately, none of those scripts will run on your side ootb.

Don't know when I will find the time to strip them down to the relevant "bones".

admin
Site Admin
Posts: 60552
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: SC: Faster speed of subs (by loading from memory) [Granted]

Post by admin »

OK, I think see it now. No time today anymore for the fix. Tomorrow...

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: SC: Faster speed of subs (by loading from memory) [Granted]

Post by Filehero »

Heredocs?

I started hunting, but my scripts are heavily nested (includes) so it's a real time-swalling pita (commenting/uncommenting by trial&error) to even touch a potential region of troubles.

Currently my (a?) candidate is an "included function" defining a heredoc which in turn defines a script header with further include statements.

admin
Site Admin
Posts: 60552
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: SC: Faster speed of subs (by loading from memory) [Granted]

Post by admin »

Recursion is a bitch. Tomorrow...

admin
Site Admin
Posts: 60552
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: SC: Faster speed of subs (by loading from memory) [Granted]

Post by admin »

Is it fixed now (v24.30.0119)?

Filehero
Posts: 2644
Joined: 27 Feb 2012 18:50
Location: Windows 10 Pro x64

Re: SC: Faster speed of subs (by loading from memory) [Granted]

Post by Filehero »

At work on MacOS. Maybe later.


Edit: with v24.30.0121 the script errors reported above are gone. :)

Post Reply