[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  speed of groups

speed of groups

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page


Posted by Tsunami   USA  (204 posts)  [Biography] 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?
[Go to top] top

Posted by Ked   Russia  (524 posts)  [Biography] 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.
[Go to top] top

Posted by Tsunami   USA  (204 posts)  [Biography] 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
[Go to top] top

Posted by Nexes   (65 posts)  [Biography] 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*
[Go to top] top

Posted by Nick Gammon   Australia  (22,973 posts)  [Biography] 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
[Go to top] 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.


15,943 views.

It is now over 60 days since the last post. This thread is closed.     [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]