Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow OpenPsi to react on events #3579

Open
stellarspot opened this issue Jul 12, 2019 · 1 comment
Open

Allow OpenPsi to react on events #3579

stellarspot opened this issue Jul 12, 2019 · 1 comment

Comments

@stellarspot
Copy link
Contributor

In current implementation OpenPsi is run in a loop where it checks if its rules are satisfied in the AtomSpace.

The proposal is to allow to subscribe OpenPsi on some events so if there are no new events it does nothing and when an event arrives it checks if the rules are satisfied.

There are 2 advantages of the event driven approach for OpenPsi:

  • it does not waste CPU when there are no new events for some period of time
  • it reacts immediately when an event arrives instead of waiting the minimum time between loop calls
@linas
Copy link
Member

linas commented Jul 12, 2019

FYI, related work: See also opencog/atomspace#1750

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants