Search found 2 matches

by rand
Sat Jan 04, 2020 4:10 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: matches[n] faster then a local variable?
Replies: 2
Views: 4957

matches[n] faster then a local variable?

Is matches[n] faster then accessing a local variable? For example:

for i=1,100 do
echo("Backstab "..matches[2])
end

OR

local s = matches[2]
for i=1,100 do
echo("Backstab "..s)
end

Thanks.
by rand
Sat Jan 04, 2020 2:16 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: Fastest Trigger Types
Replies: 18
Views: 19718

Fastest Trigger Types

For someone in the know, what is the order from fastest to slowest of the following trigger types? Start of line (fastest?) Exact Match or Substring (middle?) Regex (slowest) I read somewhere that substring is, but that sounds illogical (assuming I understand correctly). Start of line should instant...