Skip to content

Revert this-parameter filtering for methods #31349

Closed

Description

We believe #20616 may be the cause of some recent slowness in editor completions. We are considering reverting the feature to increase performance (admittedly at the expense of some editor UX).

Activity

  1. DanielRosenwasser commented on May 10, 2019

    @DanielRosenwasser
    MemberAuthor

    Removing the logic doesn't seem to do much from what we've seen. Completions are still ridiculously slow.

  2. ahejlsberg commented on May 12, 2019

    @ahejlsberg
    Member

    See #31354 for the real fix.

  3. ahejlsberg commented on May 13, 2019

    @ahejlsberg
    Member

    I'm reopening this issue. Turns out this-parameter filtering is also a contributor to the slowdown, it's just that the eager conditional type true/false branch resolution is the main offender. I have verified that removing the this-parameter filtering greatly speeds up completions with styled-components. We basically need both fixes.

  4. DanielRosenwasser commented on May 13, 2019

    @DanielRosenwasser
    MemberAuthor

    Understandable if we have to, but it would be unfortunate. Libraries like fp-ts v2 would be affected.

  5. mattiamanzati commented on May 13, 2019

    @mattiamanzati

    Is it really worth it? Will some flag to turn this on be present? DX will suffer a lot :/

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

Metadata

Metadata

Labels

In DiscussionNot yet reached consensusSuggestionAn idea for TypeScript

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions