Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Config subclass with immutable Equalizer #156

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Commits on Oct 9, 2022

  1. Add Config subclass with immutable Equalizer

    When extending Dry::Configurable, the default is to initialize a
    Dry::Equalizer without immutability on the hash method
    
    When Dry::View fetches or stores a template, Dry::Core::Cache uses a hash
    of the arguments. Since this hashing will occur for every nested
    template, it can be quite computationally demanding
    
    In the case of fetching or storing templates, the values being hashed
    shouldn't change and so the result can be memoized
    HashNotAdam committed Oct 9, 2022
    Configuration menu
    Copy the full SHA
    4ab3427 View commit details
    Browse the repository at this point in the history