George, That is an interesting question. Here is a simple LogixNG. ?It waits for a sensor state change and then replicates that change to another sensor. ? Here is the same logic using Jython.
Here is the console log output.
There is extra overhead to capture the run times. ?There is also some "first time" overhead. Of course, there will be differences depending on the actual logic. ?Another issue is selecting how to implement the logic. For example, the LogixNG uses the "Listen on beans" action. ?This is very efficient. ?This can also be done using a a very long if-then-else-if statement. ?This would not be efficient. I have not seen any noticeable differences in performance. Dave Sand ----- Original message ----- From: "George Hofmann via groups.io" <george.hofmann=[email protected]> Subject: [jmriusers] LogixNG vs Jython performance #logixng #jython Date: Tuesday, March 18, 2025 10:00 AM I'm just starting to delve into LogixNG. It certainly looks ingenious and powerful. But I wonder, how does it compare in performance to performing the same tasks in a Jython program? Is there any overhead? ? Thanks George |