Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Which one is better?  (Read 3009 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 ;)