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

PythonCompleter : Don't evaluate properties #6193

Merged

Conversation

johnhaddon
Copy link
Member

In at least one Gaffer pipeline, common classes have properties that are slow to access, causing considerable code completion slowdowns in the PythonEditor. I'm told that optimising the properties isn't really an option, and I don't think we're losing too much by assuming that such properties won't return callables, so this seems like a reasonably pragmatic compromise.

@johnhaddon johnhaddon self-assigned this Jan 7, 2025
Copy link
Contributor

@murraystevenson murraystevenson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

In at least one Gaffer pipeline, common classes have properties that are slow to access, causing considerable code completion slowdowns in the PythonEditor. I'm told that optimising the properties isn't really an option, and I don't think we're losing too much by assuming that such properties won't return callables, so this seems like a reasonably pragmatic compromise.
@johnhaddon johnhaddon force-pushed the codeCompletionTweaks branch from 1d7f9ee to 4f8233b Compare January 13, 2025 11:33
@johnhaddon johnhaddon merged commit cb56922 into GafferHQ:1.5_maintenance Jan 13, 2025
5 checks passed
@johnhaddon johnhaddon deleted the codeCompletionTweaks branch January 21, 2025 10:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Pending release
Development

Successfully merging this pull request may close these issues.

2 participants