IndentX icon indicating copy to clipboard operation
IndentX copied to clipboard

Sublime hangs with large XML files

Open r-call opened this issue 8 years ago • 4 comments

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.

r-call avatar Aug 10 '16 16:08 r-call

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

scottpelak avatar Jul 17 '17 14:07 scottpelak

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

PatrikFomin avatar Oct 13 '17 13:10 PatrikFomin

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

ertankucukoglu avatar Apr 29 '22 10:04 ertankucukoglu

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:

  • Indent Xml with original attribute order
  • Indent Xml with parsing invalid XML

Mnior avatar Jul 23 '24 08:07 Mnior