You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As requested by @ccamel, this issue aims to improve the performance of the `Value` method in the `Dict` implementation within `engine/dict.go`. Currently, the `Value` method iterates over all key-value pairs, resulting in O(n) time complexity for key retrieval. The use of a list of terms for `Dict` representation was chosen to leverage Prolog’s pattern matching and unification capabilities through its compatibility with compound terms. However, there's room for enhancement in this approach to boost performance.
As requested by @ccamel, this issue aims to improve the performance of the `Value` method in the `Dict` implementation within `engine/dict.go`. Currently, the `Value` method iterates over all key-value pairs, resulting in O(n) time complexity for key retrieval. The use of a list of terms for `Dict` representation was chosen to leverage Prolog’s pattern matching and unification capabilities through its compatibility with compound terms. However, there's room for enhancement in this approach to boost performance.
PR URL: #17
Comment URL: #17 (comment)
The text was updated successfully, but these errors were encountered: