Skip to content

typescript--backward-to-parameter-list can cause multi-second delays in large files #185

Open
@NateEag

Description

@NateEag

I recently encountered a TypeScript file at $WORK that caused Emacs to freeze for multiple seconds after changing the buffer's contents.

I did a quick profile, and based on its results was able to get my Emacs instance back to usability by altering this line to set a limit for looking-back.

Could we introduce a limit here?

I don't know what a reasonable limit would be, nor why it's explicitly set to "no limit".

Note that there's another instance of that logic .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions