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

Ensure that constructing a Table is O(schema) not O(schema**2) #4909

tpoterba opened this issue Dec 6, 2018 · 0 comments


None yet
1 participant
Copy link

commented Dec 6, 2018

The following method on ExprContainer seems quadratic due to usage of dir:

    def _set_field(self, key, value):
        self._fields[key] = value
        self._fields_inverse[value] = key
        if key in dir(self):
            warn(f"Name collision: field {repr(key)} already in object dict. "
                 "This field must be referenced with indexing syntax")
            self.__dict__[key] = value

@tpoterba tpoterba self-assigned this Dec 6, 2018

tpoterba added a commit to tpoterba/hail that referenced this issue Dec 6, 2018

@danking danking closed this in #4914 Dec 6, 2018

danking added a commit that referenced this issue Dec 6, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.