This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

speed?

Old posts that have not been replied to for several years.
Locked
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

whats the fastest? one large proc or several small ones?

_________________
Elen sila lúmenn' omentielvo

<font size=-1>[ This Message was edited by: Papillon on 2002-05-19 15:00 ]</font>
J
Jimbo

Post by Jimbo »

If u have more than 1 bot, then getting each one to have 1 little script is faster. Also smaller scripts are easier to modify!
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

In terms of a Tcl proc statment.

Many smaller, reusable proc's are much faster, and can save code, and readability in the long run.
P
Petersen
Owner
Posts: 685
Joined: Thu Sep 27, 2001 8:00 pm
Location: Blackpool, UK

Post by Petersen »

but it really depends a lot on the application you're using it for. don't forget that everytime you call a proc, the call itself (and the subsequent return) use some cpu time (approximatly the same amount of time a 'set' statement takes). What this boils down to is that sometimes its more efficient to repeat huge segments of code within procs, instead of making a subproc to call from it. However, such code does not make it easy to maintain, so unless you have a real reason for saving the few microseconds it takes to call a proc, you're better off using as many as needed (just to put things in perspective, my old 233mhz box can do between 10000 and 15000 proc call/returns per second)
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

thx guys :smile:
Elen sila lúmenn' omentielvo
Locked