[PERFORMANCE] Better ActionTask ?

Forums 💬 NodeCanvas 🗨️ General Discussion [PERFORMANCE] Better ActionTask ?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #13126
    driiade
    Participant

      Hello, I wrote a new ActionTask to lower the use of if statement and remove the latch dirty thing.
      The main idea was to define pointer of function instead of if statement in a single function.
      What do you about it ?

      #13131
      Gavalakis
      Keymaster

        Hey!

        Have you run any performance comparison tests?

        Thanks!

        #13130
        driiade
        Participant

          Unfortunately not intensively.

           

          But theorically it s better. I just try to lower CPU but yep, no time to run a real test :/

          #13129
          driiade
          Participant

            Hello,

            Made test and it’s not efficient ?

            #13128
            Gavalakis
            Keymaster

              Hey,

              I have’t tested this yet, but I honestly can’t see how this can be faster :). Anyway, maybe I will just test and see. Also the way actions are designed, the latch flag is required for some of them. Some actions will need to be refactored before removing the latch flag.

              #13127
              driiade
              Participant

                Oh sorry the message is not clear, I made some test and it seems it’s not efficient.
                In fact we suppose the CPU can’t made some running optimization due to pointer of function. So conditionnals seem better in this case 😉

              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.