If I have a variable listing names (e.g. apple|banana|orange...), and a trigger that highlights these names when they appear on the mud:
Will having to match against this list, slow things down for my other triggers (e.g. attack messages), since every word is matched against the list? If so, is there a better way around this?
<triggers>
<trigger
custom_colour="15"
enabled="y"
expand_variables="y"
ignore_case="y"
match="\b(@!words)\b"
regexp="y"
repeat="y"
sequence="50"
>
</trigger>
</triggers>
<variables>
<variable name="words">apple|banana|orange</variable>
</variables>
For a start, I've read somewhere that saving functions into a script and having an alias call that function, is faster than a mushclient alias (with the function written in the box GUI). Something about compilation at the start, which makes sense. So I gather, it's optimum to use plugins and scripts when possible to maintain speed?
Will having to match against this list, slow things down for my other triggers (e.g. attack messages), since every word is matched against the list? If so, is there a better way around this?
<triggers>
<trigger
custom_colour="15"
enabled="y"
expand_variables="y"
ignore_case="y"
match="\b(@!words)\b"
regexp="y"
repeat="y"
sequence="50"
>
</trigger>
</triggers>
<variables>
<variable name="words">apple|banana|orange</variable>
</variables>
For a start, I've read somewhere that saving functions into a script and having an alias call that function, is faster than a mushclient alias (with the function written in the box GUI). Something about compilation at the start, which makes sense. So I gather, it's optimum to use plugins and scripts when possible to maintain speed?