[PERFORMANCE] Better ActionTask ?

NodeCanvas Forums General Discussion [PERFORMANCE] Better ActionTask ?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #15835
    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 ?

    #15856
    Gavalakis
    Keymaster

    Hey!

    Have you run any performance comparison tests?

    Thanks!

    Join us on Discord: https://discord.gg/97q2Rjh

    #15859
    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 :/

    #15906
    Driiade
    Participant

    Hello,

    Made test and it’s not efficient ?

    #15915
    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.

    Join us on Discord: https://discord.gg/97q2Rjh

    #15923
    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.