socsieng / IndentX

A Sublime Text package for indenting and formatting XML and JSON content
31 stars 8 forks source link

Sublime hangs with large XML files #17

Open r-call opened 8 years ago

r-call commented 8 years ago

Tried to indent a file that would end up being 51,000 lines after indenting and Sublime hung. Tried multiple times without success. Worked in under 1 second in Notepad++ but I much prefer to use Sublime for an editor.

EDIT: It is possible that embedded JavaScript in the XML is causing the problem.

scottpelak commented 7 years ago

Same issue. IndentX hangs on a 630,000+ character file.

PatrikFomin commented 6 years ago

Same issue here as well. I only got valid XML with no javascript but its about 2.7 million characters in total.

ertankucukoglu commented 2 years ago

As of today, v0.9.0 still has this problem.

Mnior commented 1 month ago

It’s better to reformulate this way: this plugin is significantly slower than its basic functionality: the Indent Xml plugin. Presumably because it assumes that XML is invalid. It is most likely better to divide it into independent mechanisms: