Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

String comparison

raml
2020-04-01
2020-04-03
  • raml - 2020-04-01

    Hi everybody,
    I have a curiosity about the string comparison. I'm using the = operator to compare strings in one of my function block. The question is: How much the performances change compare to a comparison of an integer?
    Thank you very much.
    Best regards

     
  • raml - 2020-04-03

    Hello,
    thank you very much for your answer.

    Just one more thing, do you strictly recommend to reduce the use of string comparison or because nowadays the cpu are very powerful so the time for string comparison is also negligible?

    Thank you.
    Best regards

     
  • m.prestel - 2020-04-03

    Hello,
    it is always a good idea to only do things if you need to do them ;)

    Best regards,
    Marcel

     
    • raml - 2020-04-03

      Hello,
      yeah clear.

      Thank you very much,
      Best regards

       

Log in to post a comment.