buguroo / pyknow

PyKnow: Expert Systems for Python
GNU Lesser General Public License v3.0
470 stars 141 forks source link

Improve complexity of `update_agenda`. #18

Closed nilp0inter closed 6 years ago

nilp0inter commented 6 years ago

update_agenda should work in place on activations instead of making copies and comparing every time is called.

https://github.com/buguroo/pyknow/blob/1aed48fd456209ad58d4d0aeb4188e98cfcbb780/pyknow/abstract.py#L53-L56

Related to #12.