Jump to content

[Question] Script size


Noah_Antilles

Recommended Posts

Hello there!

I've got a quick question regarding the size of scripts. I'm running a 700 line script to change, alter and modify the weapons in my server.

You can imagine this script is constantly being run in a TDM server. So my question is as follows:

Is it better, more efficient to have one big script like mine (700 lines) or multiple, smaller ones (7 scripts consisting of 100 lines each)?

 

Thanks for your time!

Link to comment

In terms of performance, it probably doesn't matter in your case. It also depends on how the script files access shared variables (e.g. global variables are much slower than local/upvalue variables) - but that's nothing you'd care about with a 700 lines script.

Instead, the question should be: Does splitting it up simplify it and improve readability?

  • Thanks 1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...