Skip to content

[CLOSED] Typing performance improvement #6503

@core-ai-bot

Description

@core-ai-bot

Issue by redmunds
Thursday Mar 13, 2014 at 19:51 GMT
Originally opened as adobe/brackets#7193


I discovered this when implementing editor preference validation. For EditorStatusBar to display the cursor position, it calls Editor.getCursorPos() with expandTabs option. This causes the "tabSize" preference to be retrieved on every keystroke. This really sucks in a document that doesn't have any Tab characters!

This changes it so the "tabSize" pref is not retrieved until a until a Tab char is found.

This value could be cached to improve it for docs with Tab chars since it rarely changes.


redmunds included the following code: https://github.com/adobe/brackets/pull/7193/commits

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