Skip to content

Cripplingly slow performance on large HTML files #49

@fake-name

Description

@fake-name

Issue description

Basically, if you try to use this plugin on a large HTML file (I'm dealing with a ~6.5 MByte file), it completely locks the editor up for long enough (multiple minutes) that I just killed the process.

Steps to reproduce the issue

  1. Open large HTML file.
  2. Run beautifier
  3. Try to interact with the editor.

What's the actual result?

The entire Sublime Text editor becomes completely unresponsive, and fails to do anything.

What's the expected result?

I'd expect the beautifier to actually use a HTML parser.

STOP PARSING HTML WITH REGULAR EXPRESSIONS!

As a comparison, I shoved the HTML file in question into beautiful soup 4, and it took maybe 4 seconds to completely parse the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions