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 a feature toggle to disable all of the verifications to optimize the performance in production #45

Open
serradura opened this issue Jul 24, 2020 · 2 comments
Labels
enhancement New feature or request
Milestone

Comments

@serradura
Copy link
Owner

serradura commented Jul 24, 2020

There are several checkers inside of the code to ensure a better experience in development and guide the developer to avoid predictable mistakes. So, the idea is to provide a global feature toggle like Micro::Case::Result.disable_transition_tracking to improve the gem's performance (e.g: disable theses checkers in production).

Thanks, @MatheusRich for asking me about the existence of this feature.

@serradura serradura added the enhancement New feature or request label Jul 24, 2020
@serradura serradura added this to the 3.x milestone Jul 24, 2020
@MatheusRich
Copy link
Contributor

You should benchmark if this change will affect significantly the performance.

@serradura serradura modified the milestones: 3.x, 4.x, Someday Aug 21, 2020
@tiagofsilva
Copy link
Contributor

The Result class is too specific to configure stuff. So I went about looking for a central place to put this, like a config class or something. And found that this already exists in Micro::Case::Config, no?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants