Skip to content

Conversation

@caseyonit
Copy link

Summary

This PR improves LSP attribute completion performance for large modules (e.g. import polars as pl; pl.) by avoiding eager per-attribute type/docstring resolution when the completion candidate set is large. For smaller completion sets, we still compute and return rich completion metadata (kinds, type details, and documentation) to preserve existing behavior.

Fixes #2296

Test Plan

cargo fmt --all
cargo test -p pyrefly completion -- --nocapture

@meta-cla meta-cla bot added the cla signed label Feb 3, 2026
@migeed-z
Copy link
Contributor

migeed-z commented Feb 3, 2026

cc @yangdanny97 @kinto0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Profile autocompletion speed

2 participants