Skip to content

Benchmark! #4

Description

@chrisui

So in theory this plugin is great. We prevent the breaking of purity throughout our components transparently so should be able to avoid lots of re-renders without having to manually manage our bound functions and their references.

However, there is obviously some performance cost from doing the memoized bind so it would be good to have some very clear benchmarks which would demonstrate this and allow us to decide whether the optimisation is worth it or not.

These benchmarks should help:

  • Determine whether this is even a viable solution (though the work done here should be what we do in our components anyway to keep purity)
  • Determine location (per instance? per component?) of cache and size (dynamic? best default static?)
  • Prevent performance regressions in future releases and allow people to test different caching algorithms

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions