News for hackers. Stuff that matters.
Re:Sublime Text 4 by Greaka on Friday May 21, 2021 @04:47AM (#27231810)
Hey there, subl is absolutely the best when you quickly need to open and edit a huge file. You cannot, however, do that when the file only has 1 line. Do you think it might be possible to get that fixed at some point? Opening a 1 line 1GB file on a modern machine brings subl to a complete halt and regex editing is sheer impossible.
Re:Sublime Text 4 by ben-schaaf on Friday May 21, 2021 @05:44AM (#27232090)
This is a known limitation that we're looking at addressing in future updates.
Re:Sublime Text 4 by Aeolun on Friday May 21, 2021 @06:36AM (#27232367)
Not that any other editor but Vim seems to do this without issues, but it is one of the things the whole experience of Sublime leads me to believe would already be possible :)
Re:Sublime Text 4 by siculars on Friday May 21, 2021 @07:36AM (#27232748)
So is your internal mem structure/unit of operation split on new line? Sounds like you need to refine that to include a max character count sub line structure.
Re:Sublime Text 4 by trzeci on Friday May 21, 2021 @01:28PM (#27237092)
Hi! I'm struggling with the same problems (Debugging huge ASM.js files). The best modern, non-vim editor to handle such files I've found is Cuda Text: http://uvviewsoft.com/cudatext/

Absolutely top tier lightweight code editor for special tasks.

Re:Sublime Text 4 by naikrovek on Friday May 21, 2021 @05:26PM (#27240168)
UltraEdit can open huge files (multiple tens of GB) in seconds.

worth a look if you do this a lot.

Re:Sublime Text 4 by trzeci on Saturday May 22, 2021 @07:35AM (#27245531)
I didn't know about UltraEdit - just tested on my files that I work with: 50MiB of ASM.js code in ~20 lines.

UltraEdit is very sluggish - to the moment it's not usable to work with.

I did a very subjective comparison between few editors in terms of speed in working with such file (flow is: open, find, manually edit, save). And in my eyes here is the result: 1. Cuda Text 2. Sublime 4 3. VS Code 6. UltraEdit

Please note: I only tested the workflow that I work on daily basis. I can see that UltraEdit can do much more that Cuda Text, and in different test cases probably it will be a much better choice. But not for me.

Re:Sublime Text 4 by pupdogg on Wednesday May 26, 2021 @10:00PM (#27298515)
I concur with trzeci that UltraEdit is by far the slowest in editing large text files compared to the other contenders being discussed here. I was not aware of CudaText before but just gave it a try also and it seems fairly rock solid compared to ST.
Re:Sublime Text 4 by bachmeier on Friday May 21, 2021 @08:48AM (#27233342)
> Opening a 1 line 1GB file on a modern machine brings subl to a complete halt and regex editing is sheer impossible.

Is this a common operation for a text editor?

Re:Sublime Text 4 by magicalhippo on Friday May 21, 2021 @09:38AM (#27233825)
Perhaps not super-common, but at work we have to deal with XML files that are 4-500MB in size that don't contain newline characters. Every now and then we have edit them.

It's at least something I'd expect a premium text editor to handle without issues.

Re:Sublime Text 4 by silverwind on Friday May 21, 2021 @11:03AM (#27234926)
It's common when working with big API responses which are indented using plugins after loading. Most APIs do not serve whitespace in their responses, so it's crucial that the editor won't freeze up on initial load.
Re:Sublime Text 4 by naikrovek on Friday May 21, 2021 @05:28PM (#27240188)
try turning off syntax highlighting, if you haven't. that speeds up ST dramatically on large files, in my experience.

or give UltraEdit a try. it opens huge files with ease.

Re:Sublime Text 4 by sigzero on Friday May 21, 2021 @10:53AM (#27234799)
If you are manipulating data, it could be. Logs can easily get big as well.
Re:Sublime Text 4 by adamzochowski on Friday May 21, 2021 @09:48AM (#27233946)
Yeah, plenty of people edit files like xml or json in text editors.
Re:Sublime Text 4 by jeromegv on Friday May 21, 2021 @10:10AM (#27234155)
Sublime can do big files without any issue, the specific use case here is if it all sits on a single line. Most XML/Json files are not single line, but yes it happens.