Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make validate_options a class method
- Loading branch information
1 parent
b83f364
commit 3c27b6e
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3c27b6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For changes such as this, I've wondered what is the rationale for turning an instance method operating on instance data (the options) into a class method to which instance data then has to be passed as an argument? Is it a performance or design consideration?
Thanks!
3c27b6e
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you already know the reason but this commit was part of a refactor to remove all the builder instances and decrease the number of allocated objects since all the operations can be done in the class level, so it is a performance consideration.