View Single Post
  #2  
Old 10-02-2026, 14:33
chants's Avatar
chants chants is offline
VIP
 
Join Date: Jul 2016
Posts: 906
Rept. Given: 51
Rept. Rcvd 53 Times in 32 Posts
Thanks Given: 784
Thanks Rcvd at 1,192 Times in 555 Posts
chants Reputation: 53
Cool project, have you considered the various performance implications of custom byte code, some of these or most are pass through optimizations. But check this out "Loops that have fewer than 300 instructions are eligible for JIT-compilation. Loops larger than that are too costly to compile. When the loop has executed 16 times, the script is JIT-compiled in the background. When the JIT-compilation completes, execution is transferred to the compiled code."
Quote:
https://learn.microsoft.com/en-us/powershell/scripting/dev-cross-plat/performance/script-authoring-considerations?view=powershell-7.6
So my guess is virtual execution will not scale well for big loops e.g. a compression/encryption of a file or such use cases at least very easily. But then I was thinking if there were a way to forward the whole loop to the original engine probably it would be okay. Anyway, not sure how common big loops are in PS scripts.

I like the logo too BTW.
Reply With Quote