Why is CharInSet faster than Case statement?

后端 未结 5 984
借酒劲吻你
借酒劲吻你 2020-12-05 11:26

I\'m perplexed. At CodeRage today, Marco Cantu said that CharInSet was slow and I should try a Case statement instead. I did so in my parser and then checked with AQTime wha

5条回答
  •  既然无缘
    2020-12-05 11:38

    The code in the function"CharInSet" is faster than 'case', the time is spent on 'call', use while not (cp^ in [..]) then

    you will see this is the fasted.

提交回复
热议问题