Home   Help Search Login Register  

Author Topic: Which one is better?  (Read 1392 times)

0 Members and 1 Guest are viewing this topic.

Offline haroon1992

  • Members
  • *
  • My life is hopeless...
Which one is better?
« on: 16 Aug 2010, 16:46:59 »
A long script with many calculations.

Or

Several small scripts thats doing the exact same thing as the long script (but in cooperation)

Regards,
Haroon1992
Very busy with life, business, and other stuff. Away from OFP for months. Not sure if I could get back onto it. :(

Offline i0n0s

  • Moderator
  • *****
Re: Which one is better?
« Reply #1 on: 16 Aug 2010, 17:47:02 »
Since there are no real threads, it will be the same.

Moving into small scripts will create some overhead since you need to create a thread model in which you can check if every calculation is done.

The long script will be minimal faster, the smaller ones are nicer code, so do the smaller ones ;)