Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ speed of groups
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Tsunami
USA (204 posts) Bio
|
Date
| Sun 05 Feb 2006 07:16 PM (UTC) |
Message
| I was wondering how fast enabling and disabling groups of triggers/aliases/etc was. For instance, in a current plugin I usually change at least one group per line, one some lInes as many as six. Is this effecient or will it slow MushClient down noticablely? | Top |
|
Posted by
| Ked
Russia (524 posts) Bio
|
Date
| Reply #1 on Mon 06 Feb 2006 08:32 AM (UTC) Amended on Mon 06 Feb 2006 08:59 AM (UTC) by Ked
|
Message
| Enabling/disabling a group takes about 0.000005 seconds for me, which includes the time needed to set up a loop for timing it. The whole loop included 100,000 iterations, each enabling and then disabling the same trigger group, and took around half a second to execute.
So your plugin would need to have a script section the size of "War and Peace" for you to notice any lag from those operations. Besides, even if you perform something on every line of your script, doesn't mean that all those lines will be executed every time something in your script is called.
P.S. I tested with Lua. Any other language should be much slower, but unless you do thousands of EnableTriggerGroup's at once, it still shouldn't be a problem. | Top |
|
Posted by
| Tsunami
USA (204 posts) Bio
|
Date
| Reply #2 on Mon 06 Feb 2006 10:26 PM (UTC) |
Message
| Ok, thanks a bunch. I'd still like to see more of a tree structure to groups, with parents and children, ... but I'll survive for now :P | Top |
|
Posted by
| Nexes
(65 posts) Bio
|
Date
| Reply #3 on Sat 18 Feb 2006 04:20 AM (UTC) |
Message
| Any other language should be much slower?! Omg, *drops Python* *goes to Lua* | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #4 on Sat 18 Feb 2006 10:22 PM (UTC) |
Message
| I don't know about "much slower" - internally they are calling the same functions. There is an overhead in COM calls, and there is an overhead in Lua calls, I haven't measured the difference. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
17,899 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top