Skip to content

Storing substitutions in memory #2

@cameel

Description

@cameel

The current engine assumes that Substitution.Info is in storage but this means that we need to clear the substitutions after every call to Prolog.query(). I think it would be better to store substitutions in memory because we don't really need to persist them between contract calls.

Another disadvantage of having them in storage is that functions that would not otherwise modify contract state cannot be view or pure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions