soartech / jsoar

Pure Java implementation of the Soar cognitive architecture.
http://soartech.github.com/jsoar/
BSD 3-Clause "New" or "Revised" License
54 stars 19 forks source link

Implement performance enhancement for commands #123

Open marinier opened 4 years ago

marinier commented 4 years ago

As discussed here and implemented in commit 08ae031038e293a984e1c9265e3a9d4eac648354, command performance can be significantly improved. This is unlikely to matter for commands that aren't being called at runtime, but for those that are (like the log command that was fixed), this can make a huge difference. And if we do them all this way, we would be able to eliminate the instanceof call in Utils.parseAndRun().

The next most critical command is probably print, which I know SID uses on the RHS.