Why are some scripts loading fast while others loading slow?

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

pepper82

Member
Jan 26, 2017
272
1
18
42
I have some very big scripts (with "big" I mean like 1000 lines). Some of them can be reloaded within milliseconds while others taking like 4 seconds to reload.

Can anybody give me a hint how to optimize this? What is causing this? Is it because of many "if-else" statements? Or because of particles?
 
The Particles could be the issue. Try removing the particles temporary to check if it loads faster.
 
Well' commented all the particle effects, but that's not the reason for the script to load for several seconds. :-(
Any more suggestions?
 
Well' commented all the particle effects, but that's not the reason for the script to load for several seconds. :-(
Any more suggestions?
Script reloading times depends on which syntax that script uses. The longer and more intricate filled the syntax is wtih Skript's regex, the longer it will take to reload. Such as SkRayFall's particles.
 
Script reloading times depends on which syntax that script uses. The longer and more intricate filled the syntax is wtih Skript's regex, the longer it will take to reload. Such as SkRayFall's particles.
It also depends on how many commands, functions, etc. it has.
 
Status
Not open for further replies.