Skip to content

unicode characters in large files cause extreme slowdown #75

@Enteleform

Description

@Enteleform

Sublime Text 3143
Windows 10 x64

I first noticed this when attempting to select all text with Ctrl + A in the __init__.py file of the keyboard module. Sublime Text would become entirely unresponsive for about 5-10 seconds, and then finally select all of the text in the file.

I managed to narrow down the cause to this line, which contains a ç character.

Tests:

  • Disabled all plugins, issue disappeared. Had a hunch that it might be WordHighlight since it deals with selecting text, and my suspicion was confirmed when re-enabling all other plugins.
  • Created a large scratch file (~1000 lines)
    • tested select all while WordHighlight was disabled - no issue
    • enabled WordHighlight - still no issue
    • added the ç character to the end of the file - issue arises
    • disabled WordHighlight - no issue

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