What's better: One big skript file or several files with same events?

  • 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 community!

    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
Hi all,
regarding server performance, what do you think would be the better solution:

1.) Putting all scripts in one big skript (PRO: all stuff at one place, less events CON: reloading that skript takes forever)
2.) Splitting scripts in different files and using the same event over and over again (PRO: faster reloading time of single skripts, CON: ?)

What would you recommend?
 
Different files but create some core function files NOT with functions but with skqc files Why functions are litterly pasting double code trough your code instead of calling it
 
Different files but create some core function files NOT with functions but with skqc files Why functions are litterly pasting double code trough your code instead of calling it
You shouldn't be using skqaddons
 
Functions behaves the same as just duplicating code. Without any performance boost
No, they don't behave at all like that. If that's how they worked, recursive functions would not work. Functions aren't about increasing performance, I don't know where the hell you even got that idea from. While on the topic of performance, using functions instead of duplicate code will actually decrease parse time.
 
I don't think it really matters until you have either a massive game or tons of scripts then you probably would split it into files. If it's not a big game or server doesn't contain tons of scripts, then just use one.
 
No, they don't behave at all like that. If that's how they worked, recursive functions would not work. Functions aren't about increasing performance, I don't know where the hell you even got that idea from. While on the topic of performance, using functions instead of duplicate code will actually decrease parse time.

The skript load time Will take alot longer. I Will do Some test wenn i am Done with my work
 
Any kind of logic would tell you less text to parse = faster parse times.

That is the Logic "theory" but in practice it doesn't i have Done these test before i Will do these tests again with the right values
 
Status
Not open for further replies.