Skip to content

Memoize result for a given input #19

Description

@Ambrevar

A great optimization, I believe, would be to memoize the source update results depending on the input.

Example:

  • Type "foo", takes 10s to compute.
  • Type "bar", takes 15s to compute.
  • Type "foo" again.

With the current prompter, the last "foo" would take another 10s. With memoization, it would be instantaneous.

In terms of memory, I don't believe it's a big deal since prompters are short-lived objects.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions