Sublime Forum

Sublime 4 Build 4107 Freezing

#1

Hi Support,

I am using Sublime to open and edit large XML files (~4GB). When I was on Build 3211 I could change the extension from Plain Text to XML without issue. When I try to do the same after upgrading to Sublime 4 Build 4107 is freezes and will not allow me.

I tried to troubleshoot by using a small file and it worked but there were still some minor freezing issues. One good thing that I see improvement on with Build 4107 is that the large XML files open up so much faster, but to change from Plain Text to XML extension is not possible.

Please help. New Sublime User.
Matthew

0 Likes

#2

I suspect your bottleneck is related to trying to have syntax highlighting in a file that’s so large. I don’t think that’s likely to improve much for files of that size.

On the whole I would expect the changes in ST4 to make syntaxes faster, not slower, but by the same token files measured in the gigabytes are always going to be a problem, I would think.

0 Likes

#3

Hi @OdatNurd - Thank you for the quick response.

I have two comments/question:

  1. Do you know why it wasn’t an issue in the previous build (3211) that I was using?
  2. I went back to v3211 today and now it is an issue.

Do you know any default settings that I could configure that would open all XML files in the XML syntax? Could this be a solution?

Thanks,
Matthew

0 Likes

#4

Offhand, no. There were many improvements to syntaxes and syntax highlighting in general in ST4; I have a vague recollection of there being a new sanity limit on the size of file for which syntax highlighting can be enabled to stop performance problems though.

Assuming I’m not making that up, then I would imagine that for files that massive it’s not applying syntax highlighting on purpose.

1 Like

#5

Thanks @OdatNurd

0 Likes