Sublime Forum

Can't load 437 MB xml file

#1

Hi,
I have xml file with 437 MB and sublime text take several hour to load the file and I had to kill
the process.
In Joe ou Visual Code it loads with no problem.

I’ using Linux Debian in 8 Gb AMD Ryzen 7

Thank you in advance.

0 Likes

#2

Such a file is definitely not a use case ST is capable to handle. VS Code introduced a streaming engine which makes it possible to load only peaces of a file to RAM, which allows it to handle all sizes of files, but ST tries to load and parse it at once.

0 Likes

#3

Thank you.
Is there any way to tell ST not to parse the code?

0 Likes

#4

Can’t test it right now, but what about changing the file extension to .txt? Interested in your feedback.

0 Likes

#5

Changing it to .txt will most likely work, yes. Or well, it will remove any sort of syntax highlighting but it may still take a while for the file to be loaded into RAM.

0 Likes

#6

Change the file extension to txt, it took several hours and I had to kill the process.
I think it as to to also with the stupid size of every line, there are lines with more than 400K chars.

0 Likes

#7

Huge lines are really a problem for editors. VSC is the only one I know which handles them quite well (the only reason why I’ve installed it here).

0 Likes

#8

Shall we fill a features request? :slight_smile:
Thank you.

0 Likes

#9

There is one already.

0 Likes